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 ] ); }