diff --git a/components/TongLianPay.php b/components/TongLianPay.php index 9e04032..ace83d7 100644 --- a/components/TongLianPay.php +++ b/components/TongLianPay.php @@ -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('订单异常'); }