Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yansongda committed Feb 29, 2024
1 parent d6dde04 commit d16485a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plugin/Wechat/ResponsePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ public function assembly(Rocket $rocket, Closure $next): Rocket
*/
protected function validateResponse(Rocket $rocket): null|Collection|MessageInterface
{
$response = $rocket->getDestination();
$response = $rocket->getDestinationOrigin();

if ($response instanceof ResponseInterface
&& ($response->getStatusCode() < 200 || $response->getStatusCode() >= 300)) {
throw new InvalidResponseException(Exception::RESPONSE_CODE_WRONG, '微信返回状态码异常,请检查参数是否错误', $rocket->getDestination());
}

return $response;
return $rocket->getDestination();
}
}

0 comments on commit d16485a

Please sign in to comment.