作者 lyh

gx

... ... @@ -35,7 +35,9 @@ class BaseLogic extends Logic
$this->request = request();
$this->requestAll = request()->all();
$this->user = Cache::get(request()->header('token'));
$this->project = (new ProjectLogic())->getInfo($this->user['project_id']);
if(!empty($this->user)){
$this->project = (new ProjectLogic())->getInfo($this->user['project_id']);
}
}
... ...
... ... @@ -114,8 +114,6 @@ class UserLogic extends BaseLogic
* @method
*/
public function login(){
var_dump('1111111111111111111111');
die();
//验证账号密码
$password = base64_encode(md5($this->param['password']));
$info = $this->model->read(['mobile'=>$this->param['mobile'],'password'=>$password,'status'=>0], ['id','mobile','role_id','token','name','project_id']);
... ...