1
This commit is contained in:
parent
d591372347
commit
dadd37db44
@ -76,26 +76,26 @@ class TongLianPay
|
||||
|
||||
if ($signing && $signing->status == 1) {
|
||||
|
||||
$data = [
|
||||
'cusid' => $this->cusid,
|
||||
'appid' => $this->appid,
|
||||
'trxamt' => $signing->moy * 100,
|
||||
'reqsn' => date('YmdH') . rand(10000, 99999),
|
||||
'oldtrxid' => $signing->trxid,
|
||||
'oldreqsn' => $signing->order_no,
|
||||
'randomstr' => date('YmdH') . rand(10000, 99999),
|
||||
'signtype' => 'RSA',
|
||||
];
|
||||
// $data = [
|
||||
// 'cusid' => $this->cusid,
|
||||
// 'appid' => $this->appid,
|
||||
// 'trxamt' => $signing->moy * 100,
|
||||
// 'reqsn' => date('YmdH') . rand(10000, 99999),
|
||||
// 'oldtrxid' => $signing->trxid,
|
||||
// 'oldreqsn' => $signing->order_no,
|
||||
// 'randomstr' => date('YmdH') . rand(10000, 99999),
|
||||
// 'signtype' => 'RSA',
|
||||
// ];
|
||||
|
||||
$data['sign'] = urlencode($this->sign($data));
|
||||
// $data['sign'] = urlencode($this->sign($data));
|
||||
|
||||
$request = $this->ToUrlParams($data);
|
||||
// $request = $this->ToUrlParams($data);
|
||||
|
||||
$res = $this->request('https://vsp.allinpay.com/apiweb/tranx/refund', $request);
|
||||
// $res = $this->request('https://vsp.allinpay.com/apiweb/tranx/refund', $request);
|
||||
|
||||
$result = json_decode($res, true);
|
||||
// $result = json_decode($res, true);
|
||||
|
||||
if ($result['trxstatus'] == '0000') {
|
||||
// if ($result['trxstatus'] == '0000') {
|
||||
|
||||
$signing->status = 3;
|
||||
|
||||
@ -106,8 +106,8 @@ class TongLianPay
|
||||
return $this->apiReturnSuccess('操作成功');
|
||||
}
|
||||
|
||||
return $this->apiReturnError($result['errmsg'], $result);
|
||||
}
|
||||
// return $this->apiReturnError($result['errmsg'], $result);
|
||||
// }
|
||||
return $this->apiReturnError('订单异常');
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user