Browse Source

【程序目录】优化缓存删除提示

吴昊天 3 years atrás
parent
commit
5d2c73fc90
1 changed files with 2 additions and 3 deletions
  1. 2 3
      crmeb/app/adminapi/controller/v1/setting/SystemCity.php

+ 2 - 3
crmeb/app/adminapi/controller/v1/setting/SystemCity.php

@@ -27,7 +27,7 @@ class SystemCity extends AuthController
      * 构造方法
      * SystemCity constructor.
      * @param App $app
-     * @param SystemStoreServices $services
+     * @param SystemCityServices $services
      */
     public function __construct(App $app, SystemCityServices $services)
     {
@@ -133,8 +133,7 @@ class SystemCity extends AuthController
      */
     public function clean_cache()
     {
-        $res = CacheService::delete('tree_city_list');
-        $res = $res && CacheService::delete('CITY_LIST');
+        $res = CacheService::delete('CITY_LIST');
         if ($res) {
             return app('json')->success(400185);
         } else {