This commit is contained in:
吴昊天 2023-03-18 14:10:28 +08:00
parent 739ff267bd
commit 39cfea0502
2 changed files with 3 additions and 9 deletions

View File

@ -91,10 +91,7 @@ class SystemNotification extends AuthController
if ($data['mark'] == 'verify_code') $data['type'] = 'is_sms';
if (!$data['id']) return app('json')->fail(100100);
if ($this->services->saveData($data)) {
CacheService::delete('NOTICE_SMS_' . $data['mark']);
CacheService::delete('wechat_' . $data['mark']);
CacheService::delete('routine_' . $data['mark']);
CacheService::delete('TEMP_IDS_LIST');
CacheService::clear();
return app('json')->success(100001);
} else {
return app('json')->fail(100007);
@ -117,10 +114,7 @@ class SystemNotification extends AuthController
if ($type == '' || $status == '' || $id == 0) return app('json')->fail(100100);
$this->services->update($id, [$type => $status]);
$res = $this->services->getOneNotce(['id' => $id]);
CacheService::delete('NOTICE_SMS_' . $res->mark);
CacheService::delete('wechat_' . $res->mark);
CacheService::delete('routine_' . $res->mark);
CacheService::delete('TEMP_IDS_LIST');
CacheService::clear();
return app('json')->success(100014);
}
}

View File

@ -14,7 +14,7 @@ Route::miss(function () {
switch (strtolower($appName)) {
case config('app.admin_prefix', 'admin'):
case 'kefu':
return view(app()->getRootPath() . 'public' . DS . config('app.admin_prefix', 'admin') . DS . 'system.html');
return view(app()->getRootPath() . 'public' . DS . 'system.html');
case 'home':
if (request()->isMobile()) {
return redirect(app()->route->buildUrl('/'));