作者 潘浩文
1 个管道 的构建 通过 耗费 1 秒

修改意见

@@ -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