From 39cfea0502c0e5d3fedb0acf4f3a41d5d7c1c7ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Sat, 18 Mar 2023 14:10:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/v1/setting/SystemNotification.php | 10 ++-------- crmeb/route/route.php | 2 +- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/crmeb/app/adminapi/controller/v1/setting/SystemNotification.php b/crmeb/app/adminapi/controller/v1/setting/SystemNotification.php index 1f9dfa2d6..4b9d8571e 100644 --- a/crmeb/app/adminapi/controller/v1/setting/SystemNotification.php +++ b/crmeb/app/adminapi/controller/v1/setting/SystemNotification.php @@ -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); } } diff --git a/crmeb/route/route.php b/crmeb/route/route.php index 71bb5ab33..7aecdcc86 100644 --- a/crmeb/route/route.php +++ b/crmeb/route/route.php @@ -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('/'));