Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
79c3c81ce1
|
|
@ -62,16 +62,18 @@ class HfpayController extends PaymentController
|
|||
$verify_result = $this->get_RSA_SignResult($josn['sign'],$josn);
|
||||
if($verify_result){
|
||||
$resp_data=$this->jsonData;
|
||||
$this->pay_type_id = BasePayType::where('code','=',$resp_data['trade_type'])->value('id');
|
||||
$data = [
|
||||
'total_fee' => $resp_data['trans_amt'],
|
||||
'out_trade_no' => $resp_data['req_seq_id'],
|
||||
'trade_no' => $resp_data['out_trans_id'],
|
||||
'unit' => 'yuan',
|
||||
'pay_type' => '汇付'.$this->payTpye[$resp_data['trade_type']],
|
||||
'pay_type_id' => $this->pay_type_id
|
||||
];
|
||||
$this->payResutl($data);
|
||||
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'],
|
||||
'out_trade_no' => $resp_data['req_seq_id'],
|
||||
'trade_no' => $resp_data['out_trans_id'],
|
||||
'unit' => 'yuan',
|
||||
'pay_type' => '汇付'.$this->payTpye[$resp_data['trade_type']],
|
||||
'pay_type_id' => $this->pay_type_id
|
||||
];
|
||||
$this->payResutl($data);
|
||||
}
|
||||
echo "success";
|
||||
}else{
|
||||
echo "fail";
|
||||
|
|
@ -129,4 +131,4 @@ class HfpayController extends PaymentController
|
|||
Pay::payResponseDataLog($post['batch_no'], $desc, json_encode($post));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue