feat: 修复师傅账号被删除后,还能登录小程序问题。

This commit is contained in:
gcd 2025-06-27 23:30:06 +08:00
parent f0cd58efe0
commit 6275693575

View File

@ -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();