From 862b05496e3a793716c87febed6b11407bc0761a Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Thu, 27 Jun 2024 19:11:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/PayNotifyLogic.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index db33821e3..2eebad45c 100644 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -211,6 +211,7 @@ class PayNotifyLogic extends BaseLogic 'type'=>1, 'status'=>0 ])->count(); + if($count){ self::addFlowLog($order); } @@ -257,12 +258,9 @@ class PayNotifyLogic extends BaseLogic if($one['back_num'] >= $backPurchase){ $wait = bcsub($one['back_num'],$backPurchase,2)??0; - - $data['number'] =$wait; + $data['number'] =$backPurchase; Db::name('user_sign_log')->insert($data); //总的减去采购款百分之十剩余的 - - if(empty($wait)){ UserSign::where('id',$one['id'])->update( [ @@ -274,7 +272,7 @@ class PayNotifyLogic extends BaseLogic //add UserSign::where('id',$one['id'])->update( [ - 'back_num'=>$backPurchase + 'back_num'=>$wait ] ); }