Commit e8902da6 authored by gongguan's avatar gongguan

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

parent 71f9ea60
...@@ -18,7 +18,7 @@ const CustomTest1ControllerInstance = new CustomTest1Controller() ...@@ -18,7 +18,7 @@ const CustomTest1ControllerInstance = new CustomTest1Controller()
import CustomTest2Controller from './controller/custom/test2.controller' import CustomTest2Controller from './controller/custom/test2.controller'
const CustomTest2ControllerInstance = new CustomTest2Controller() const CustomTest2ControllerInstance = new CustomTest2Controller()
import GameController from './controller/game.controller' import GameController from './controller/game.controller'
const { startGame, submitGame, getGameInfo, getMyRankPrize } = new GameController() const CommonGameController = new GameController()
export default { export default {
getVipInfo: CommonUserControllerInstance.getVipInfo, getVipInfo: CommonUserControllerInstance.getVipInfo,
...@@ -42,8 +42,8 @@ export default { ...@@ -42,8 +42,8 @@ export default {
testGetStats: CustomTest1ControllerInstance.testGetStats, testGetStats: CustomTest1ControllerInstance.testGetStats,
test2addStat: CustomTest2ControllerInstance.test2addStat, test2addStat: CustomTest2ControllerInstance.test2addStat,
test2getStats: CustomTest2ControllerInstance.test2getStats, test2getStats: CustomTest2ControllerInstance.test2getStats,
startGame, startGame: CommonGameController.startGame,
submitGame, submitGame: CommonGameController.submitGame,
getGameInfo, getGameInfo: CommonGameController.getGameInfo,
getMyRankPrize 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