wupengfei 1 vuosi sitten
vanhempi
commit
2c9d221e85
2 muutettua tiedostoa jossa 3 lisäystä ja 5 poistoa
  1. 1 1
      .idea/workspace.xml
  2. 2 4
      application/api/controller/Base.php

+ 1 - 1
.idea/workspace.xml

@@ -443,7 +443,7 @@
       <workItem from="1694739473903" duration="20371000" />
       <workItem from="1694997975324" duration="5574000" />
       <workItem from="1695085328694" duration="21844000" />
-      <workItem from="1695603648860" duration="22896000" />
+      <workItem from="1695603648860" duration="22956000" />
     </task>
     <servers />
   </component>

+ 2 - 4
application/api/controller/Base.php

@@ -51,19 +51,17 @@ class Base extends Controller
         $this->off_set   =   $this->page * $this->page_num - $this->page_num;
         $this->is_test = input('test',0);// 测试用的  // 上线需要注释
         $path = explode('/',$this->request->path());
-        if( input('user_id')) $this->user_id = input('user_id');
+        if( input('user_id')) $this->user_id = input('user_id');// 测试用的  // 上线需要注释
         if(!empty($this->need_login) && in_array(end($path),$this->need_login)) $this->checkLogin();
-        //if($this->user_id == 97) $this->user_id = 83;
         !defined("APPNAME") && define('APPNAME',sysconf('app_name'));
         !defined("APPLOGO") && define('APPLOGO',sysconf('app_logo'));
-        setcookie('aasdf','666',time()+ 66666666666);
     }
     //校验jwt权限API
     protected function checkLogin()
     {
         $authorization = app()->request->header('Authorization');
         if(empty($authorization) || $authorization == null){
-            if($this->is_test == 1) {
+            if($this->is_test == 1) {// 测试用的  // 上线需要注释
                 $this->user_id = input('user_id')  ? input('user_id') : 22;
                 $this->account_id  = $this->user_id;
                 return true;