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(); + } }