This commit is contained in:
aozhiwei 2024-03-14 20:48:36 +08:00
parent 8b90fe7e5a
commit 1dda2e7789

View File

@ -465,7 +465,7 @@ class UserController extends BaseAuthedController {
return;
}
$userInfo = User::Info($userDb);
$heroDb = Hero::findByAccountId(myself()->_getAccountId(), $userDb['hero_uniid']);
$heroDb = Hero::findByAccountId(myself()->_getAccountId(), $userInfo['hero_uniid']);
if (!$heroDb) {
$this->_rspErr(1, 'Hero does not exist');
return;