From 14c508afebb5b154d9820baab3999abb1f8028ce Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Wed, 16 Mar 2022 16:07:44 +0800 Subject: [PATCH] setter --- app/controller/api/Coupon.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controller/api/Coupon.php b/app/controller/api/Coupon.php index 277f589..5b58ca0 100644 --- a/app/controller/api/Coupon.php +++ b/app/controller/api/Coupon.php @@ -449,7 +449,7 @@ class Coupon extends Base //var_dump($result); //付款成功才提交!!!!!伪装成功 - if( isset($result['payment_no']) || true ){ + if( isset($result['payment_no']) ){ $redpackData['pay_time'] = date("Y-m-d H:i:s",$time); Redpack::create($redpackData); Db::commit(); @@ -759,7 +759,7 @@ class Coupon extends Base //var_dump($result); //付款成功才提交!!!!!伪装成功 - if( isset($agencyResult['payment_no']) || true ){ + 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); @@ -824,7 +824,7 @@ class Coupon extends Base //var_dump($result); //付款成功才提交!!!!!伪装成功 - if( isset($result['payment_no']) || true ){ + if( isset($result['payment_no']) ){ $redpackData['pay_time'] = date("Y-m-d H:i:s",$time); Redpack::create($redpackData); Db::commit();