|
|
@@ -78,7 +78,7 @@ class MasterWokerTokenService
|
|
|
public static function overtimeToken($token)
|
|
|
{
|
|
|
$time = time();
|
|
|
- $userSession = MasterWorkerSession::where('token', '=', $token)->find();
|
|
|
+ $userSession = MasterWorkerSession::where('token', '=', $token)->findOrEmpty();
|
|
|
if ($userSession->isEmpty()) {
|
|
|
return false;
|
|
|
}
|