Skip to content

Commit

Permalink
fix(wechat): fixed #204.
Browse files Browse the repository at this point in the history
  • Loading branch information
dayu committed Feb 29, 2020
1 parent cea25ef commit 4e3712a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gateways/Wechat/Notify.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function request()
throw new GatewayException(sprintf('code:%d, desc:%s', $resArr['err_code'], $resArr['err_code_des']), Payment::GATEWAY_CHECK_FAILED, $resArr);
}

if (isset($resArr['sign']) && $this->verifySign($resArr) !== false) {
if (isset($resArr['sign']) && $this->verifySign($resArr) === false) {
throw new GatewayException('check notify data sign failed', Payment::SIGN_ERR, $resArr);
}

Expand Down

0 comments on commit 4e3712a

Please sign in to comment.