This commit is contained in:
aozhiwei 2024-07-09 13:48:11 +08:00
parent de378a8286
commit 367911a01e

View File

@ -65,8 +65,8 @@ class GMController extends BaseAuthedController {
'.addhero' => function () use($params) { '.addhero' => function () use($params) {
$this->addHero($params); $this->addHero($params);
}, },
'.dechp' => function () use($params) { '.decgold' => function () use($params) {
$this->decHP($params); $this->decGold($params);
}, },
'.loot' => function () use($params) { '.loot' => function () use($params) {
$this->lootTest($params); $this->lootTest($params);
@ -345,7 +345,7 @@ END
myself()->_rspOk(); myself()->_rspOk();
} }
private function decHP($params) private function decGold($params)
{ {
$itemNum = getXVal($params, 0, 0); $itemNum = getXVal($params, 0, 0);
$userInfo = myself()->_getUserInfo('gold'); $userInfo = myself()->_getUserInfo('gold');