From 1dda2e77892aba53c6662fb6d9ff1a04aae0f1c3 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 14 Mar 2024 20:48:36 +0800 Subject: [PATCH] 1 --- webapp/controller/UserController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index 2a3f57dd..d8b8ab7b 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -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;