no message

This commit is contained in:
kuaifan
2024-09-01 19:47:03 +08:00
parent cf9051412a
commit 8c3cd379a2
27 changed files with 5223 additions and 3313 deletions

View File

@@ -401,8 +401,15 @@ class SystemController extends AbstractController
}
if ($all['open'] === 'close') {
$all['key'] = md5(Base::generatePassword(32));
} else {
$botUser = User::botGetOrCreate('check-in');
if (!$botUser) {
return Base::retError('创建签到机器人失败');
}
}
if ($all['modes']) {
$all['modes'] = array_intersect($all['modes'], ['auto', 'manual', 'location']);
}
$all['modes'] = array_intersect($all['modes'], ['auto', 'manual', 'location']);
$setting = Base::setting('checkinSetting', Base::newTrim($all));
} else {
$setting = Base::setting('checkinSetting');