新增核销礼品券限制

This commit is contained in:
liu 2024-06-26 15:18:12 +08:00
parent da22981882
commit 11fc23a322

View File

@ -436,7 +436,8 @@ class OrderLogic extends BaseLogic
$order=StoreOrder::where('id',$data['id'])->find();
PayNotifyLogic::afterPay($order);
PayNotifyLogic::descStock($order['id']);
if($order['uid']){
if($order['uid'] && $order['total_price'] > 500){
$user_number = bcmul($order['pay_price'], '0.10', 2);
User::where('id', $order['uid'])->inc('integral', $user_number)->update();
UserSign::where(['uid' => $order['uid'],'order_id' => $order['order_id']])->update(['status'=>1]);