修改状态
This commit is contained in:
parent
b5a6fab3b2
commit
862b05496e
@ -211,6 +211,7 @@ class PayNotifyLogic extends BaseLogic
|
|||||||
'type'=>1,
|
'type'=>1,
|
||||||
'status'=>0
|
'status'=>0
|
||||||
])->count();
|
])->count();
|
||||||
|
|
||||||
if($count){
|
if($count){
|
||||||
self::addFlowLog($order);
|
self::addFlowLog($order);
|
||||||
}
|
}
|
||||||
@ -257,12 +258,9 @@ class PayNotifyLogic extends BaseLogic
|
|||||||
|
|
||||||
if($one['back_num'] >= $backPurchase){
|
if($one['back_num'] >= $backPurchase){
|
||||||
$wait = bcsub($one['back_num'],$backPurchase,2)??0;
|
$wait = bcsub($one['back_num'],$backPurchase,2)??0;
|
||||||
|
$data['number'] =$backPurchase;
|
||||||
$data['number'] =$wait;
|
|
||||||
Db::name('user_sign_log')->insert($data);
|
Db::name('user_sign_log')->insert($data);
|
||||||
//总的减去采购款百分之十剩余的
|
//总的减去采购款百分之十剩余的
|
||||||
|
|
||||||
|
|
||||||
if(empty($wait)){
|
if(empty($wait)){
|
||||||
UserSign::where('id',$one['id'])->update(
|
UserSign::where('id',$one['id'])->update(
|
||||||
[
|
[
|
||||||
@ -274,7 +272,7 @@ class PayNotifyLogic extends BaseLogic
|
|||||||
//add
|
//add
|
||||||
UserSign::where('id',$one['id'])->update(
|
UserSign::where('id',$one['id'])->update(
|
||||||
[
|
[
|
||||||
'back_num'=>$backPurchase
|
'back_num'=>$wait
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user