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