From 52d45bf1e73682366968a38c7304ea26986bee0b Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Wed, 16 Mar 2022 11:07:56 +0800 Subject: [PATCH] setter --- app/controller/api/Coupon.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controller/api/Coupon.php b/app/controller/api/Coupon.php index 0214a5e..eda22f9 100644 --- a/app/controller/api/Coupon.php +++ b/app/controller/api/Coupon.php @@ -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)); //默认回滚