wupengfei před 2 roky
rodič
revize
0c468ac47a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      application/api/controller/WashManage.php

+ 1 - 1
application/api/controller/WashManage.php

@@ -494,7 +494,7 @@ class WashManage extends Base
         if($order_info['is_deleted'] == 1) $this->error('订单已删除');
         if($order_info['cancel_state'] == 1) $this->error('订单已取消');
         if($order_info['status'] == 8) $this->error('订单已取消');
-        if($order_info['coupon_id'])  UserCouponList::where('id',$order_info['coupon_id'])->update(['status'=>1,'used_time'=>'']);
+        if($order_info['coupon_id'])  UserCouponList::where('id',$order_info['coupon_id'])->update(['status'=>1,'used_time'=>null]);
         if($order_info['status'] == 0){
             WashOrder::where('id',$order_id)->update(['status'=>9,'cancel_state'=>1,'cancel_at'=>date('Y-m-d H:i:s')]);
         }else{