更新回调验证
This commit is contained in:
parent
153129b322
commit
11e23da50f
|
|
@ -62,6 +62,7 @@ class HfpayController extends PaymentController
|
|||
$verify_result = $this->get_RSA_SignResult($josn['sign'],$josn);
|
||||
if($verify_result){
|
||||
$resp_data=$this->jsonData;
|
||||
if ($resp_data['trans_stat'] == 'S') {
|
||||
$this->pay_type_id = BasePayType::where('code','=',$resp_data['trade_type'])->value('id');
|
||||
$data = [
|
||||
'total_fee' => $resp_data['trans_amt'],
|
||||
|
|
@ -72,6 +73,7 @@ class HfpayController extends PaymentController
|
|||
'pay_type_id' => $this->pay_type_id
|
||||
];
|
||||
$this->payResutl($data);
|
||||
}
|
||||
echo "success";
|
||||
}else{
|
||||
echo "fail";
|
||||
|
|
|
|||
Loading…
Reference in New Issue