Commit e8902da6 authored by gongguan's avatar gongguan

修改了 GameController 的 import 为非结构模式

parent 71f9ea60
......@@ -18,7 +18,7 @@ const CustomTest1ControllerInstance = new CustomTest1Controller()
import CustomTest2Controller from './controller/custom/test2.controller'
const CustomTest2ControllerInstance = new CustomTest2Controller()
import GameController from './controller/game.controller'
const { startGame, submitGame, getGameInfo, getMyRankPrize } = new GameController()
const CommonGameController = new GameController()
export default {
getVipInfo: CommonUserControllerInstance.getVipInfo,
......@@ -42,8 +42,8 @@ export default {
testGetStats: CustomTest1ControllerInstance.testGetStats,
test2addStat: CustomTest2ControllerInstance.test2addStat,
test2getStats: CustomTest2ControllerInstance.test2getStats,
startGame,
submitGame,
getGameInfo,
getMyRankPrize
startGame: CommonGameController.startGame,
submitGame: CommonGameController.submitGame,
getGameInfo: CommonGameController.getGameInfo,
getMyRankPrize: CommonGameController.getMyRankPrize
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment