...
|
...
|
@@ -237,12 +237,12 @@ class AdminSignController extends AdminBaseController |
|
|
if (!empty($param['ids'])){
|
|
|
Db::name('user_sign')->where(['user_id' => ['in', $param['ids']]])->delete();
|
|
|
Db::name('user_week_sign')->where(['user_id' => ['in', $param['ids']]])->delete();
|
|
|
Db::name('user')->where(['user_id' => ['in', $param['ids']]])->update(['all_sign_day'=>0,'stay_sign_day'=>0,'longest_sign_day'=>0]);
|
|
|
Db::name('user')->where(['id' => ['in', $param['ids']]])->update(['all_sign_day'=>0,'stay_sign_day'=>0,'longest_sign_day'=>0]);
|
|
|
$this->success('删除成功');
|
|
|
}
|
|
|
Db::name('user_sign')->where('user_id', $param['id'])->delete();
|
|
|
Db::name('user_week_sign')->where('user_id', $param['id'])->delete();
|
|
|
Db::name('user')->where('user_id', $param['id'])->update(['all_sign_day'=>0,'stay_sign_day'=>0,'longest_sign_day'=>0]);
|
|
|
Db::name('user')->where('id', $param['id'])->update(['all_sign_day'=>0,'stay_sign_day'=>0,'longest_sign_day'=>0]);
|
|
|
$this->success('删除成功');
|
|
|
}
|
|
|
|
...
|
...
|
|