正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -237,12 +237,12 @@ class AdminSignController extends AdminBaseController | @@ -237,12 +237,12 @@ class AdminSignController extends AdminBaseController | ||
237 | if (!empty($param['ids'])){ | 237 | if (!empty($param['ids'])){ |
238 | Db::name('user_sign')->where(['user_id' => ['in', $param['ids']]])->delete(); | 238 | Db::name('user_sign')->where(['user_id' => ['in', $param['ids']]])->delete(); |
239 | Db::name('user_week_sign')->where(['user_id' => ['in', $param['ids']]])->delete(); | 239 | Db::name('user_week_sign')->where(['user_id' => ['in', $param['ids']]])->delete(); |
240 | - Db::name('user')->where(['user_id' => ['in', $param['ids']]])->update(['all_sign_day'=>0,'stay_sign_day'=>0,'longest_sign_day'=>0]); | 240 | + Db::name('user')->where(['id' => ['in', $param['ids']]])->update(['all_sign_day'=>0,'stay_sign_day'=>0,'longest_sign_day'=>0]); |
241 | $this->success('删除成功'); | 241 | $this->success('删除成功'); |
242 | } | 242 | } |
243 | Db::name('user_sign')->where('user_id', $param['id'])->delete(); | 243 | Db::name('user_sign')->where('user_id', $param['id'])->delete(); |
244 | Db::name('user_week_sign')->where('user_id', $param['id'])->delete(); | 244 | Db::name('user_week_sign')->where('user_id', $param['id'])->delete(); |
245 | - Db::name('user')->where('user_id', $param['id'])->update(['all_sign_day'=>0,'stay_sign_day'=>0,'longest_sign_day'=>0]); | 245 | + Db::name('user')->where('id', $param['id'])->update(['all_sign_day'=>0,'stay_sign_day'=>0,'longest_sign_day'=>0]); |
246 | $this->success('删除成功'); | 246 | $this->success('删除成功'); |
247 | } | 247 | } |
248 | 248 |
-
请 注册 或 登录 后发表评论