Skip to content

Commit

Permalink
fix: 修復驗證 TradeSha 錯誤
Browse files Browse the repository at this point in the history
  • Loading branch information
xup6m6fu04 committed Feb 6, 2023
1 parent 2ed0f9c commit 2444757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NewebPay.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function verify(string $trade, $sha): bool
*/
public function decodeFromRequest($post)
{
if ($this->verify($post['TradeInfo'], $post['TradeSha'])) {
if (!$this->verify($post['TradeInfo'], $post['TradeSha'])) {
throw new Exception('TradeSha is not match');
}

Expand Down

0 comments on commit 2444757

Please sign in to comment.