From 367911a01e186a969ae8540f2b777cc6709ea0cc Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 9 Jul 2024 13:48:11 +0800 Subject: [PATCH] 1 --- webapp/controller/GMController.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/controller/GMController.class.php b/webapp/controller/GMController.class.php index 08aeea3a..e1ff18fc 100644 --- a/webapp/controller/GMController.class.php +++ b/webapp/controller/GMController.class.php @@ -65,8 +65,8 @@ class GMController extends BaseAuthedController { '.addhero' => function () use($params) { $this->addHero($params); }, - '.dechp' => function () use($params) { - $this->decHP($params); + '.decgold' => function () use($params) { + $this->decGold($params); }, '.loot' => function () use($params) { $this->lootTest($params); @@ -345,7 +345,7 @@ END myself()->_rspOk(); } - private function decHP($params) + private function decGold($params) { $itemNum = getXVal($params, 0, 0); $userInfo = myself()->_getUserInfo('gold');