|
@@ -961,7 +961,7 @@ class PaymentService extends BaseService
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
$pay = $this->createPay($scene, $payType);
|
|
$pay = $this->createPay($scene, $payType);
|
|
|
- RedisService::set("caches:payments:wechat:{$scene}_{$outTradeNo}_pay", ['order' => $order, 'config' => $this->config], 7200);
|
|
|
|
|
|
|
+ RedisService::set("caches:payments:wechat:{$scene}_{$outTradeNo}_pay", ['order' => $order,'params'=>$payData, 'config' => $this->config], 7200);
|
|
|
if (empty($pay)) {
|
|
if (empty($pay)) {
|
|
|
$this->error = '微信打款失败';
|
|
$this->error = '微信打款失败';
|
|
|
return false;
|
|
return false;
|
|
@@ -969,7 +969,7 @@ class PaymentService extends BaseService
|
|
|
|
|
|
|
|
|
|
|
|
|
$result = $pay->transfer($payData);
|
|
$result = $pay->transfer($payData);
|
|
|
- RedisService::set("caches:payments:wechat:{$scene}_{$outTradeNo}_result", ['order' => $order,'result'=> $result, 'config' => $this->config], 7200);
|
|
|
|
|
|
|
+ RedisService::set("caches:payments:wechat:{$scene}_{$outTradeNo}_result", ['order' => $order,'params'=>$payData,'result'=> $result, 'config' => $this->config], 7200);
|
|
|
$msg = isset($result['message'])? trim($result['message']) : '';
|
|
$msg = isset($result['message'])? trim($result['message']) : '';
|
|
|
$batchId = isset($result['batch_id'])? trim($result['batch_id']) : '';
|
|
$batchId = isset($result['batch_id'])? trim($result['batch_id']) : '';
|
|
|
if(empty($batchId)){
|
|
if(empty($batchId)){
|
|
@@ -994,7 +994,7 @@ class PaymentService extends BaseService
|
|
|
],//收款方信息
|
|
],//收款方信息
|
|
|
];
|
|
];
|
|
|
$pay = $this->createPay($scene, $payType);
|
|
$pay = $this->createPay($scene, $payType);
|
|
|
- RedisService::set("caches:payments:alipay:{$scene}_{$outTradeNo}_pay", ['order' => $order, 'config' => $this->config], 7200);
|
|
|
|
|
|
|
+ RedisService::set("caches:payments:alipay:{$scene}_{$outTradeNo}_pay", ['order' => $order,'params'=>$payData, 'config' => $this->config], 7200);
|
|
|
if (empty($pay)) {
|
|
if (empty($pay)) {
|
|
|
$this->error = '支付宝打款失败';
|
|
$this->error = '支付宝打款失败';
|
|
|
return false;
|
|
return false;
|
|
@@ -1002,7 +1002,7 @@ class PaymentService extends BaseService
|
|
|
|
|
|
|
|
|
|
|
|
|
$result = $pay->transfer($payData);
|
|
$result = $pay->transfer($payData);
|
|
|
- RedisService::set("caches:payments:alipay:{$scene}_{$outTradeNo}_result", ['order' => $order,'result'=> $result, 'config' => $this->config], 7200);
|
|
|
|
|
|
|
+ RedisService::set("caches:payments:alipay:{$scene}_{$outTradeNo}_result", ['order' => $order,'params'=>$payData,'result'=> $result, 'config' => $this->config], 7200);
|
|
|
$code = isset($result['code'])? intval($result['code']) : '';
|
|
$code = isset($result['code'])? intval($result['code']) : '';
|
|
|
$msg = isset($result['sub_msg'])? trim($result['sub_msg']) : '';
|
|
$msg = isset($result['sub_msg'])? trim($result['sub_msg']) : '';
|
|
|
if($code != 10000){
|
|
if($code != 10000){
|