wupengfei 2 years ago
parent
commit
0c468ac47a
1 changed files with 1 additions and 1 deletions
  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{