whitefang 1 год назад
Родитель
Сommit
42636c8ea3
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      app/api/logic/ServiceOrderLogic.php

+ 3 - 0
app/api/logic/ServiceOrderLogic.php

@@ -91,6 +91,9 @@ class ServiceOrderLogic extends BaseLogic
                 }else{
                     $order_amount = $order_amount-$order_coupon_amount;
                 }
+                $user_coupon->voucher_status = 1;
+                $user_coupon->$user_coupon->voucher_count-1;
+                $user_coupon->save();
             }
 
             //生成服务工单