Skip to content

Commit 56a3912

Browse files
authored
取消异常 交给业务处理
1 parent 197c33f commit 56a3912

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/User.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ public function getClass()
5959
/**
6060
* 获取 具用登录信息的用户模型.
6161
*
62-
* @return Model
62+
* @return Model | null
6363
*/
64-
public function get(): Model
64+
public function get()
6565
{
6666
$token = $this->app->jwt->getToken();
6767

@@ -77,7 +77,7 @@ public function get(): Model
7777

7878
$namespace = $this->getClass();
7979
$model = new $namespace();
80-
$user = $model->findOrFail($uid);
80+
$user = $model->find($uid);
8181

8282
return $user;
8383
}

0 commit comments

Comments
 (0)