Skip to content

Commit

Permalink
Update MapayController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Chenxi-Chris authored Dec 25, 2022
1 parent 0c300ed commit 910b0c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Http/Controllers/Pay/MapayController.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public function notifyUrl(Request $request)
if (!$payGateway) {
return 'fail';
}
if($payGateway->pay_handleroute != '/pay/mapay'){
return 'fail';
}
$query = signquery_string($data);
if (!$data['pay_no'] || md5($query . $payGateway->merchant_pem ) != $data['sign']) { //不合法的数据
return 'fail'; //返回失败 继续补单
Expand Down

0 comments on commit 910b0c0

Please sign in to comment.