master
wangxinglong 2022-03-16 11:07:56 +08:00
parent 2802220bbd
commit 52d45bf1e7
1 changed files with 3 additions and 0 deletions

View File

@ -421,6 +421,7 @@ class Coupon extends Base
Db::commit();
return $this->json();
}
$redpackData['failure_reason'] = json_encode($result,JSON_UNESCAPED_UNICODE);
//否则失败 记录失败原因
Log::info("企业发起付款【分销者红包】失败:" . json_encode($result,JSON_UNESCAPED_UNICODE));
//默认回滚
@ -712,6 +713,7 @@ class Coupon extends Base
if( isset($agencyResult['payment_no']) ){
$agencyRedpackData['pay_time'] = date("Y-m-d H:i:s",$time);
}else{
$agencyRedpackData['failure_reason'] = json_encode($agencyResult,JSON_UNESCAPED_UNICODE);
//否则失败 记录失败原因
Log::info("企业发起付款【渠道商红包】失败:" . json_encode($agencyResult,JSON_UNESCAPED_UNICODE));
}
@ -785,6 +787,7 @@ class Coupon extends Base
"user_coupon_id" =>$couponId,
]);
}
$redpackData['failure_reason'] = json_encode($result,JSON_UNESCAPED_UNICODE);
//否则失败 记录失败原因
Log::info("企业发起付款【消费者红包】失败:" . json_encode($result,JSON_UNESCAPED_UNICODE));
//默认回滚