From 66b61549962c9993ec72c2adae8bcc477f739580 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 1 Aug 2024 18:45:25 +0800 Subject: [PATCH] 1 --- webapp/controller/GMController.class.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/webapp/controller/GMController.class.php b/webapp/controller/GMController.class.php index 5f1cdec3..cf77465c 100644 --- a/webapp/controller/GMController.class.php +++ b/webapp/controller/GMController.class.php @@ -62,6 +62,9 @@ class GMController extends BaseAuthedController { }, '.loot' => function () use($params) { $this->lootTest($params); + }, + '.clear_big_wheel' => function () use($params) { + $this->clearBigWheel($params); } ); $func = getXVal($cmdHash, $cmd); @@ -82,6 +85,7 @@ class GMController extends BaseAuthedController { .setsystime //设置服务器时间,示例:.setsystime 2021-12-08 00:00:00 .reset_mission //重置任务 .loot 索引ID 次数 //测试掉落系统数据,示例:.loot 1030 10 +.clear_big_wheel clear big wheel data END )); } @@ -282,4 +286,9 @@ END )); } + private function clearBigWheel($params){ + $key = myself()->_getModelConstant('MidData', 'BIG_WHEEL_TYPE'); + myself()->_callModelStatic('MidData', 'setData', $key, json_encode(array())); + myself()->_rspOk(); + } }