소스 검색

用户端使用优惠券

whitefang 1 년 전
부모
커밋
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();
             }
 
             //生成服务工单