...
|
...
|
@@ -206,7 +206,7 @@ class User extends Api |
|
|
$model = new UserCoupon();
|
|
|
|
|
|
// 更新已过期状态
|
|
|
$model->where('status','0')->where('user_id',$this->auth->id)->update(['status'=>'2']);
|
|
|
$model->where('status','0')->where('user_id',$this->auth->id)->where('endtime','<',time())->update(['status'=>'2']);
|
|
|
|
|
|
$type = $this->request->post('type');
|
|
|
if (!in_array($type,[0,1,2])) $this->error('type参数不合法');
|
...
|
...
|
|