wugg 3 years ago
parent
commit
df33357666
1 changed files with 8 additions and 8 deletions
  1. 8 8
      app/admin/controller/System.php

+ 8 - 8
app/admin/controller/System.php

@@ -129,14 +129,14 @@ class System extends BaseController
     public function upload_file()
     {
         $post  =$this->request->post();
-//        $token = isset($post['token']) ? trim($post['token']) : "";
-//        if($token==""){
-//            return error_show(101,'token不能为空');
-//        }
-//        $effetc = VerifyTokens($token);
-//        if(!empty($effetc) && $effetc['code']!=0){
-//            return error_show($effetc['code'],$effetc['message']);
-//        }
+        $token = isset($post['token']) ? trim($post['token']) : "";
+        if($token==""){
+            return error_show(101,'token不能为空');
+        }
+        $effetc = VerifyTokens($token);
+        if(!empty($effetc) && $effetc['code']!=0){
+            return error_show($effetc['code'],$effetc['message']);
+        }
         $files = $this->request->file('files');
         $list="";
         if($files!=""){