|
|
@@ -987,14 +987,15 @@ class PaymentService extends BaseService
|
|
|
$result = $pay->transfer($payData);
|
|
|
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']) : '';
|
|
|
- $batchId = isset($result['batch_id'])? trim($result['batch_id']) : '';
|
|
|
- if(empty($batchId)){
|
|
|
+ $batchId = isset($result['transfer_bill_no'])? trim($result['transfer_bill_no']) : '';
|
|
|
+ $packageInfo = isset($result['package_info'])? trim($result['package_info']) : '';
|
|
|
+ if(empty($batchId) || empty($packageInfo)){
|
|
|
$this->error = $msg? $msg : '微信打款失败';
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
$this->error = '微信打款成功';
|
|
|
- return ['order_no'=> $outTradeNo,'batch_id'=> $batchId,'result'=>$result];
|
|
|
+ return ['order_no'=> $outTradeNo,'batch_id'=> $batchId,'package_info'=>$packageInfo,'result'=>$result];
|
|
|
}else if ($payType == 20){
|
|
|
$payData = [
|
|
|
'out_biz_no' => $outTradeNo,//商户订单号,内部订单号
|