feat: 修复师傅账号被删除后,还能登录小程序问题。
This commit is contained in:
parent
f0cd58efe0
commit
6275693575
|
|
@ -196,7 +196,7 @@ class WorkerApi extends BaseService
|
|||
*/
|
||||
public function workerLogin(int $id): bool
|
||||
{
|
||||
$user = $this->getWorkerModel()->find($id);
|
||||
$user = $this->getWorkerModel()->where('deletetime', null)->find($id);
|
||||
$this->tryLogin($user);
|
||||
|
||||
$user = $user->toArray();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user