1
This commit is contained in:
parent
d591372347
commit
dadd37db44
@ -76,26 +76,26 @@ class TongLianPay
|
|||||||
|
|
||||||
if ($signing && $signing->status == 1) {
|
if ($signing && $signing->status == 1) {
|
||||||
|
|
||||||
$data = [
|
// $data = [
|
||||||
'cusid' => $this->cusid,
|
// 'cusid' => $this->cusid,
|
||||||
'appid' => $this->appid,
|
// 'appid' => $this->appid,
|
||||||
'trxamt' => $signing->moy * 100,
|
// 'trxamt' => $signing->moy * 100,
|
||||||
'reqsn' => date('YmdH') . rand(10000, 99999),
|
// 'reqsn' => date('YmdH') . rand(10000, 99999),
|
||||||
'oldtrxid' => $signing->trxid,
|
// 'oldtrxid' => $signing->trxid,
|
||||||
'oldreqsn' => $signing->order_no,
|
// 'oldreqsn' => $signing->order_no,
|
||||||
'randomstr' => date('YmdH') . rand(10000, 99999),
|
// 'randomstr' => date('YmdH') . rand(10000, 99999),
|
||||||
'signtype' => 'RSA',
|
// '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;
|
$signing->status = 3;
|
||||||
|
|
||||||
@ -106,8 +106,8 @@ class TongLianPay
|
|||||||
return $this->apiReturnSuccess('操作成功');
|
return $this->apiReturnSuccess('操作成功');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->apiReturnError($result['errmsg'], $result);
|
// return $this->apiReturnError($result['errmsg'], $result);
|
||||||
}
|
// }
|
||||||
return $this->apiReturnError('订单异常');
|
return $this->apiReturnError('订单异常');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user