修改状态
This commit is contained in:
parent
b5a6fab3b2
commit
862b05496e
@ -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
|
||||
]
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user