Update UserService.php

This commit is contained in:
Anyon 2020-11-24 18:10:31 +08:00
parent 4c3df8e52e
commit 387f374d7e

View File

@ -62,7 +62,7 @@ class UserService extends Service
$uid = $this->app->db->name('DataUser')->strict(false)->insertGetId($data); $uid = $this->app->db->name('DataUser')->strict(false)->insertGetId($data);
} }
if ($force) $this->buildUserToken($uid, $type); if ($force) $this->buildUserToken($uid, $type);
return $this->get($uid, $type); return $this->get($type, $uid);
} }
/** /**