浏览代码

修改注释

邹景立 3 年之前
父节点
当前提交
f83de1256d
共有 2 个文件被更改,包括 5 次插入7 次删除
  1. 3 4
      app/admin/controller/api/Runtime.php
  2. 2 3
      app/admin/controller/api/Upload.php

+ 3 - 4
app/admin/controller/api/Runtime.php

@@ -16,7 +16,6 @@
 
 namespace app\admin\controller\api;
 
-use Exception;
 use think\admin\Controller;
 use think\admin\model\SystemConfig;
 use think\admin\service\AdminService;
@@ -44,7 +43,7 @@ class Runtime extends Controller
             $this->success('网站缓存加速成功!', 'javascript:location.reload()');
         } catch (HttpResponseException $exception) {
             throw $exception;
-        } catch (Exception $exception) {
+        } catch (\Exception $exception) {
             $this->error($exception->getMessage());
         } else {
             $this->error('只有超级管理员才能操作!');
@@ -64,7 +63,7 @@ class Runtime extends Controller
             $this->success('清空缓存日志成功!', 'javascript:location.reload()');
         } catch (HttpResponseException $exception) {
             throw $exception;
-        } catch (Exception $exception) {
+        } catch (\Exception $exception) {
             $this->error($exception->getMessage());
         } else {
             $this->error('只有超级管理员才能操作!');
@@ -112,7 +111,7 @@ class Runtime extends Controller
             $this->success('清理系统配置成功!', 'javascript:location.reload()');
         } catch (HttpResponseException $exception) {
             throw $exception;
-        } catch (Exception $exception) {
+        } catch (\Exception $exception) {
             $this->error($exception->getMessage());
         } else {
             $this->error('只有超级管理员才能操作!');

+ 2 - 3
app/admin/controller/api/Upload.php

@@ -16,7 +16,6 @@
 
 namespace app\admin\controller\api;
 
-use Exception;
 use think\admin\Controller;
 use think\admin\Storage;
 use think\admin\storage\AliossStorage;
@@ -153,7 +152,7 @@ class Upload extends Controller
             }
         } catch (HttpResponseException $exception) {
             throw $exception;
-        } catch (Exception $exception) {
+        } catch (\Exception $exception) {
             $this->error($exception->getMessage());
         }
     }
@@ -199,7 +198,7 @@ class Upload extends Controller
             }
         } catch (HttpResponseException $exception) {
             throw $exception;
-        } catch (Exception $exception) {
+        } catch (\Exception $exception) {
             $this->error(lang($exception->getMessage()));
         }
     }