新增核销礼品券限制
This commit is contained in:
parent
da22981882
commit
11fc23a322
@ -436,7 +436,8 @@ class OrderLogic extends BaseLogic
|
|||||||
$order=StoreOrder::where('id',$data['id'])->find();
|
$order=StoreOrder::where('id',$data['id'])->find();
|
||||||
PayNotifyLogic::afterPay($order);
|
PayNotifyLogic::afterPay($order);
|
||||||
PayNotifyLogic::descStock($order['id']);
|
PayNotifyLogic::descStock($order['id']);
|
||||||
if($order['uid']){
|
|
||||||
|
if($order['uid'] && $order['total_price'] > 500){
|
||||||
$user_number = bcmul($order['pay_price'], '0.10', 2);
|
$user_number = bcmul($order['pay_price'], '0.10', 2);
|
||||||
User::where('id', $order['uid'])->inc('integral', $user_number)->update();
|
User::where('id', $order['uid'])->inc('integral', $user_number)->update();
|
||||||
UserSign::where(['uid' => $order['uid'],'order_id' => $order['order_id']])->update(['status'=>1]);
|
UserSign::where(['uid' => $order['uid'],'order_id' => $order['order_id']])->update(['status'=>1]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user