王新凯 3 gadi atpakaļ
vecāks
revīzija
97677377be
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      application/api/controller/Login.php

+ 2 - 1
application/api/controller/Login.php

@@ -148,8 +148,9 @@ class Login extends Api
             $user=Db::table('q_user')->where('id',$id)->find();
 
         }
-        echo 1;die();
+
         $token = JWT::encode($user,config('jwt.key'));
+        echo 1;die();
         $this->success('登陆成功',['token'=>$token]);