源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

548 lines
20 KiB

  1. require("game.proto.157.Require157")
  2. require("game.proto.419.Require419")
  3. require("game.proto.113.Require113")
  4. require("game.daily.DailyModel")
  5. require("game.daily.DailyConst")
  6. require("game.daily.view.DailyBaseView")
  7. require("game.daily.view.DailyCommonTip")
  8. require("game.daily.view.DailyCommonView")
  9. require("game.daily.view.DailyCommonItem")
  10. require("game.daily.view.DailyCommonAttrItem")
  11. require("game.daily.view.DailyResourceRecoveryView")
  12. require("game.daily.view.DailyResourceRecoveryItem")
  13. require("game.daily.view.DailyResourceRecoveryAwardItem")
  14. require("game.daily.view.DailyResourceRecoveryTip")
  15. require("game.daily.view.DailyResourceRecoveryOneTip")
  16. require("game.daily.view.DailyActivityView")
  17. require("game.daily.view.DailyActivityItem")
  18. require("game.daily.view.DailyAllActivityView")
  19. require("game.daily.view.DailyAllActivityItem")
  20. require("game.daily.view.DailyUpSuccessView")
  21. require("game.daily.view.DailyHostingSettingView")
  22. require("game.daily.view.DailyHostingSettingItem")
  23. require("game.daily.view.DailyHostingRecordView")
  24. require("game.daily.view.DailyHostingRecordItem")
  25. require("game.daily.view.DailyHostingRewardView")
  26. require("game.daily.view.DailyHostingRewardItem")
  27. require("game.daily.view.DailyAllBaseView")
  28. require("game.daily.view.DailyOrderRewardView")
  29. require("game.daily.view.DailyOrderRewardItem")
  30. require("game.daily.view.DailyOrderTipsView")
  31. DailyController = DailyController or BaseClass(BaseController)
  32. function DailyController:__init()
  33. DailyController.Instance = self
  34. self.model = DailyModel:getInstance()
  35. self.achieve_model = AchieveModel:getInstance()
  36. self:InitEvent()
  37. self:registerAllProtocals()
  38. end
  39. function DailyController:getInstance()
  40. if DailyController.Instance == nil then
  41. DailyController.New()
  42. end
  43. return DailyController.Instance
  44. end
  45. function DailyController:InitEvent()
  46. local function onRequestHandler(...)
  47. local args = {...}
  48. if args[1] == 15701 or args[1] == 15713 or args[1] == 41902 then
  49. self:SendFmtToGame(args[1], "c", args[2])
  50. elseif args[1] == 15703 or args[1] == 15709 or args[1] == 15710 or args[1] == 41900 then
  51. self:SendFmtToGame(args[1])
  52. elseif args[1] == 15705 or args[1] == 15711 then
  53. self:SendFmtToGame(args[1], "i", args[2])
  54. elseif args[1] == 41903 then
  55. self:SendFmtToGame(args[1], "ihch", args[2], args[3], args[4], args[5])
  56. elseif args[1] == 11303 or args[1] == 15719 or args[1] == 15720 then
  57. self:SendFmtToGame(args[1], "hcc", args[2], args[3], args[4])
  58. else
  59. self:SendFmtToGame(args[1])
  60. end
  61. end
  62. self.model:Bind(DailyModel.REQUEST_CCMD_EVENT, onRequestHandler)
  63. local onOpenDailyView = function (index)
  64. if self.daily_view == nil then
  65. self.daily_view = DailyBaseView.New()
  66. end
  67. self.daily_view:Open(index)
  68. end
  69. self.model:Bind(DailyModel.OPEN_DAILY_BASE_VIEW, onOpenDailyView)
  70. local onCloseDailyView = function ()
  71. if self.daily_view then
  72. self.daily_view:Close()
  73. end
  74. end
  75. self.model:Bind(DailyModel.CLOSE_DAILY_BASE_VIEW, onCloseDailyView)
  76. local function OPEN_ALL_ACTIVITY_VIEW( )
  77. if not self.dailyallactivityview then
  78. self.dailyallactivityview = DailyAllActivityView.New()
  79. self.dailyallactivityview:Open()
  80. end
  81. end
  82. self.model:Bind(DailyModel.OPEN_ALL_ACTIVITY_VIEW,OPEN_ALL_ACTIVITY_VIEW)
  83. local function OPEN_DAILY_COMMON_TIP_VIEW( show, data, pos_x)
  84. if (data and show) or not show then
  85. self:OpenView("DailyOrderTipsView", show, data, pos_x)
  86. end
  87. end
  88. self.model:Bind(DailyModel.OPEN_DAILY_COMMON_TIP_VIEW,OPEN_DAILY_COMMON_TIP_VIEW)
  89. local function OPEN_RECOVERY_ALL_TIP( data )
  90. if not data then return end
  91. if not self.dailyresourcerecoverytip then
  92. self.dailyresourcerecoverytip = DailyResourceRecoveryTip.New()
  93. self.dailyresourcerecoverytip:Open(data)
  94. end
  95. end
  96. self.model:Bind(DailyModel.OPEN_RECOVERY_ALL_TIP,OPEN_RECOVERY_ALL_TIP)
  97. local function OPEN_RECOVERY_ONE_TIP( data )
  98. if not data then return end
  99. if not self.dailyresourcerecoveryonetip then
  100. self.dailyresourcerecoveryonetip = DailyResourceRecoveryOneTip.New()
  101. self.dailyresourcerecoveryonetip:Open(data)
  102. end
  103. end
  104. self.model:Bind(DailyModel.OPEN_RECOVERY_ONE_TIP,OPEN_RECOVERY_ONE_TIP)
  105. local function OPEN_UP_SUCCESS_VIEW( degree_id )
  106. if not self.dailyupsuccessview then
  107. self.dailyupsuccessview = DailyUpSuccessView.New()
  108. self.dailyupsuccessview:Open(degree_id)
  109. end
  110. end
  111. self.model:Bind(DailyModel.OPEN_UP_SUCCESS_VIEW,OPEN_UP_SUCCESS_VIEW)
  112. local function Req_Daily_Data( )
  113. self.model:Fire(DailyModel.REQUEST_CCMD_EVENT, 15701, DailyActivityType.Limit)
  114. self.model:Fire(DailyModel.REQUEST_CCMD_EVENT, 15701, DailyActivityType.UnLimit)
  115. self.model:Fire(DailyModel.REQUEST_CCMD_EVENT, 15702)
  116. self.model:Fire(DailyModel.REQUEST_CCMD_EVENT, 15703)
  117. self.model:Fire(DailyModel.REQUEST_CCMD_EVENT, 15709)
  118. self.model:Fire(DailyModel.REQUEST_CCMD_EVENT, 15718)
  119. end
  120. local function gameStartHandler()
  121. self.model:ResetData()
  122. local delay = function()
  123. self.model.is_game_start = true
  124. --请求人物等级计算找回
  125. NewMainRoleModel:getInstance():Fire(NewMainRoleModel.RequestWorldLevel)
  126. if GetModuleIsOpen(157,nil) then
  127. Req_Daily_Data()
  128. end
  129. if GetModuleIsOpen(419,nil,true) then
  130. self.model:Fire(DailyModel.REQUEST_CCMD_EVENT, 41900)
  131. end
  132. if self.model:LoadHostingRed() and GetModuleIsOpen(113,nil,true) then
  133. self:DailyControllerCheckRedDot()
  134. end
  135. end
  136. setTimeout(delay,1)
  137. end
  138. GlobalEventSystem:Bind(EventName.GAME_START, gameStartHandler)
  139. -- local function check_resource_recover( )
  140. --世界等级改变会有什么变化呢??,要和辉总确定
  141. -- end
  142. -- GlobalEventSystem:Bind(EventName.UPDATE_WORLD_LEVEL_VIEW,check_resource_recover)
  143. local function role_lv_up(level)
  144. if GetModuleOpenLevel( 157,nil,true ) == level and GetModuleIsOpen(157,nil,true) then
  145. --平时就只判断等级,减少判断,等级符合再多判断
  146. Req_Daily_Data()
  147. end
  148. if GetModuleOpenLevel( 419,nil,true ) == level then
  149. self.model:Fire(DailyModel.REQUEST_CCMD_EVENT, 41900)
  150. end
  151. if GetModuleOpenLevel( 113,nil,true ) == level then
  152. self:DailyControllerCheckRedDot()
  153. end
  154. end
  155. RoleManager.Instance.mainRoleInfo:Bind(EventName.CHANGE_LEVEL, role_lv_up)
  156. local function ANS_FINISHED_TASK_LIST( task_id )
  157. if task_id == Config.Moduleid[157].task_id then
  158. Req_Daily_Data()
  159. elseif task_id == Config.Moduleid[419].task_id then
  160. self.model:Fire(DailyModel.REQUEST_CCMD_EVENT, 41900)
  161. end
  162. if task_id == Config.Moduleid[113].task_id then
  163. self:DailyControllerCheckRedDot()
  164. end
  165. end
  166. GlobalEventSystem:Bind(TaskEvent.ANS_FINISHED_TASK_LIST,ANS_FINISHED_TASK_LIST)
  167. local function achieve_check_red()
  168. self:DailyControllerCheckRedDot()
  169. end
  170. -- 成就相关红点刷新事件
  171. GlobalEventSystem:Bind(AchieveModel.UPDATE_DAILY_RED, achieve_check_red)
  172. local function check_open( )
  173. --再10201协议后执行一次
  174. self.model:Fire(DailyModel.REQUEST_CCMD_EVENT,15702)
  175. end
  176. ServerTimeModel:getInstance():Bind(ServerTimeModel.INIT_TIME_SUCCEED,check_open)
  177. local function go_to_hook( )
  178. local onHookData = DailyModel:getInstance():GetOnhookConfig(2)
  179. -- print("huangcong:DailyController [start:121] :",onHookData)
  180. -- PrintTable(onHookData)
  181. -- print("huangcong:DailyController [end]")
  182. if onHookData then
  183. local pointList = ErlangParser:GetInstance():Parse(onHookData.xy)
  184. local index = math.random(1, #pointList)
  185. local randomPoint = pointList[index]
  186. local x = tonumber(randomPoint[1])
  187. local y = tonumber(randomPoint[2])
  188. local call_back = function ()
  189. GlobalEventSystem:Fire(EventName.STARTAUTOFIGHT)
  190. end
  191. local findVo = FindVo.New()
  192. findVo.type = FindVo.POINT
  193. findVo.sceneId = tonumber(onHookData.scene_id)
  194. findVo.x = x / SceneObj.LogicRealRatio.x
  195. findVo.y = y / SceneObj.LogicRealRatio.y
  196. findVo.call_back = call_back
  197. findVo.force_change_scene = true
  198. GlobalEventSystem:Fire(EventName.STOPAUTOFIGHT)
  199. GlobalEventSystem:Fire(EventName.FORCE_STOP_DO_TASK)
  200. Scene.Instance:FindElement(findVo)
  201. Message.show("正在前往挂机")
  202. end
  203. end
  204. GlobalEventSystem:Bind(EventName.REQ_GO_HOOK,go_to_hook)
  205. --托管记录
  206. local function OPEN_HOSTING_RECORD_VIEW()
  207. if not self.DailyHostingRecordView then
  208. self.DailyHostingRecordView = DailyHostingRecordView.New()
  209. self.DailyHostingRecordView:Open()
  210. end
  211. end
  212. self.model:Bind(DailyModel.OPEN_HOSTING_RECORD_VIEW,OPEN_HOSTING_RECORD_VIEW)
  213. -- 托管奖励
  214. local function OPEN_HOSTING_REWARD_VIEW()
  215. if not self.DailyHostingRewardView then
  216. self.DailyHostingRewardView = DailyHostingRewardView.New()
  217. self.DailyHostingRewardView:Open()
  218. end
  219. end
  220. self.model:Bind(DailyModel.OPEN_HOSTING_REWARD_VIEW,OPEN_HOSTING_REWARD_VIEW)
  221. -- 日常预约界面
  222. local function OPEN_DAILY_ORDER_REWARD_VIEW()
  223. if not self.DailyOrderRewardView then
  224. self.DailyOrderRewardView = DailyOrderRewardView.New()
  225. self.DailyOrderRewardView:Open()
  226. end
  227. end
  228. self.model:Bind(DailyModel.OPEN_DAILY_ORDER_REWARD_VIEW,OPEN_DAILY_ORDER_REWARD_VIEW)
  229. -- 场景切换完毕
  230. local function ON_SCENE_CHANGED()
  231. if not self.model.hosting_is_request_record then
  232. -- if GetModuleIsOpen(113,nil,true) then
  233. self.model:Fire(DailyModel.REQUEST_CCMD_EVENT, 11302)
  234. --end
  235. end
  236. self.model.hosting_is_request_record = true
  237. end
  238. GlobalEventSystem:Bind(SceneEventType.SCENE_CHANGED,ON_SCENE_CHANGED)
  239. end
  240. function DailyController:registerAllProtocals()
  241. self:RegisterProtocal(15700,"handle15700") --错误码
  242. self:RegisterProtocal(15701,"handle15701") --查询活动活跃度次数
  243. self:RegisterProtocal(15702,"handle15702") --单独查询活动状态
  244. self:RegisterProtocal(15703,"handle15703") --查询活跃度信息
  245. self:RegisterProtocal(15705,"handle15705") --领取奖励
  246. self:RegisterProtocal(15706,"handle15706") --限时活动状态变更
  247. self:RegisterProtocal(15707,"handle15707") --通知刷新15701
  248. self:RegisterProtocal(15709,"handle15709") --玩家活跃度形象
  249. self:RegisterProtocal(15710,"handle15710") --玩家活跃度升级
  250. self:RegisterProtocal(15714,"handle15714") --离线挂机时间更新推送
  251. self:RegisterProtocal(15716,"handle15716") --更新推送
  252. self:RegisterProtocal(15718,"handle15718") --今日活动预约状态
  253. self:RegisterProtocal(15719,"handle15719") --活动预约
  254. self:RegisterProtocal(15720,"handle15720") --领取活动预约奖励
  255. --资源找回
  256. self:RegisterProtocal(41900,"handle41900")
  257. self:RegisterProtocal(41902,"handle41902") --一键找回
  258. self:RegisterProtocal(41903,"handle41903") --找回
  259. self:RegisterProtocal(11300,"handle11300") --离线托管: 信息
  260. self:RegisterProtocal(11301,"handle11301") --离线托管: 托管日志
  261. self:RegisterProtocal(11302,"handle11302") --离线托管: 上线推送托管记录
  262. self:RegisterProtocal(11303,"handle11303") --离线托管: 设置托管
  263. end
  264. --错误码
  265. function DailyController:handle15700()
  266. local scmd = SCMD15700.New(true)
  267. ErrorCodeShow(scmd.errcode)
  268. end
  269. --查询活动活跃度次数
  270. function DailyController:handle15701()
  271. local scmd = SCMD15701.New(true)
  272. self.model:SetDailyBaseInfo(scmd)
  273. self:DailyControllerCheckRedDot()
  274. self.model:Fire(DailyModel.ANS_DAILY_BASE)
  275. end
  276. --单独查询活动状态
  277. function DailyController:handle15702()
  278. local scmd = SCMD15702.New(true)
  279. self.model:SetAcOpenStatus(scmd.ac_list)
  280. self:DailyControllerCheckRedDot()
  281. self.model:Fire(DailyModel.ANS_ACTIVITY_OPEN_STATUS)
  282. for i,v in ipairs(scmd.ac_list) do
  283. self.model:SetActivityIconShow(v)
  284. end
  285. end
  286. --查询活跃度信息
  287. function DailyController:handle15703()
  288. local scmd = SCMD15703.New(true)
  289. self.model:SetLivenessInfo(scmd)
  290. self:DailyControllerCheckRedDot()
  291. self.model:Fire(DailyModel.ANS_LIVENESS_INFO)
  292. --服务器推送这个后,我要刷一遍,要更新日常活跃任务进度
  293. self.model:Fire(DailyModel.REQUEST_CCMD_EVENT, 15701, DailyActivityType.Limit)
  294. self.model:Fire(DailyModel.REQUEST_CCMD_EVENT, 15701, DailyActivityType.UnLimit)
  295. --活跃度刷新后,刷一遍副本可挑战提示
  296. BaseDungeonModel:getInstance():Fire(BaseDungeonModel.UPDATE_DUN_TIP_CHECK)
  297. end
  298. --领取奖励
  299. function DailyController:handle15705()
  300. local scmd = SCMD15705.New(true)
  301. if scmd.errcode == 1 then
  302. GlobalEventSystem:Fire(EventName.PLAY_UI_EFFECT_SOUND,LuaSoundManager.SOUND_UI.AWARD)
  303. Message.show("领取成功")
  304. self.model:Fire(DailyModel.REQUEST_CCMD_EVENT, 15703)
  305. else
  306. ErrorCodeShow(scmd.errcode)
  307. end
  308. end
  309. --活动状态单条更新
  310. function DailyController:handle15706()
  311. local scmd = SCMD15706.New(true)
  312. self.model:SetActivityIconShow(scmd)
  313. local result = self.model:RefreshOneAcOpenStatus(scmd)
  314. if result then
  315. self.model:Fire(DailyModel.ANS_ACTIVITY_OPEN_STATUS)
  316. self:DailyControllerCheckRedDot()
  317. --如果是护送双倍,状态变更,则同步刷新下任务栏
  318. if scmd.module == 500 and scmd.module_sub == 0 then
  319. DailyModel.getInstance():Fire(DailyModel.REQUEST_CCMD_EVENT, 15701, DailyActivityType.Limit)
  320. DailyModel.getInstance():Fire(DailyModel.REQUEST_CCMD_EVENT, 15701, DailyActivityType.UnLimit)
  321. end
  322. else
  323. self.model:Fire(DailyModel.REQUEST_CCMD_EVENT, 15702)
  324. end
  325. end
  326. --通知刷新15701
  327. function DailyController:handle15707()
  328. local scmd = SCMD15707.New(true)
  329. self.model:Fire(DailyModel.REQUEST_CCMD_EVENT, 15701, scmd.act_type)
  330. end
  331. --玩家活跃度形象
  332. function DailyController:handle15709()
  333. local scmd = SCMD15709.New(true)
  334. self.model:SetLivenessFigureInfo(scmd)
  335. self:DailyControllerCheckRedDot()
  336. self.model:Fire(DailyModel.ANS_LIVENESS_FIGURE_INFO)
  337. end
  338. --玩家活跃度升级
  339. function DailyController:handle15710()
  340. local scmd = SCMD15710.New(true)
  341. if scmd.result == 1 then
  342. GlobalEventSystem:Fire(EventName.PLAY_UI_EFFECT_SOUND,LuaSoundManager.SOUND_UI.SUCCESS)
  343. Message.show("升级成功")
  344. self.model:Fire(DailyModel.REQUEST_CCMD_EVENT, 15709)
  345. -------------------------
  346. for k,v in pairs(DailyConst.Livenessactive) do
  347. if v.lv == scmd.lv then
  348. self.model:Fire(DailyModel.OPEN_UP_SUCCESS_VIEW,v.lv)
  349. end
  350. end
  351. else
  352. ErrorCodeShow(scmd.errcode)
  353. end
  354. end
  355. --离线挂机时间更新推送
  356. function DailyController:handle15714()
  357. local scmd = SCMD15714.New(true)
  358. if scmd and scmd.time then
  359. self.model:RefreshOutLineHookTime(scmd.time)
  360. end
  361. end
  362. --更新交易券名望券推送
  363. function DailyController:handle15716( )
  364. local scmd = SCMD15716.New(true)
  365. if self.model.daily_base_info then
  366. if scmd.type == 3 then
  367. --交易券(13006协议 tong)
  368. self.model.daily_base_info.collect_coin = scmd.value
  369. elseif scmd.type == 4 then
  370. --名望券
  371. self.model.daily_base_info.collect_honor = scmd.value
  372. end
  373. self.model:Fire(DailyModel.ANS_DAILY_BASE)
  374. end
  375. end
  376. --今日活动预约状态
  377. function DailyController:handle15718( )
  378. local scmd = SCMD15718.New(true)
  379. self.model:SetDailyOrderAllData(scmd)
  380. end
  381. --活动预约
  382. function DailyController:handle15719( )
  383. local scmd = SCMD15719.New(true)
  384. PrintTable(scmd)
  385. if scmd.errcode == 1 then
  386. Message.show("预约成功,请准时参加喔")
  387. self.model:SetDailyOrderTargetData(scmd)
  388. else
  389. ErrorCodeShow(scmd.errcode)
  390. end
  391. end
  392. --领取活动预约奖励
  393. function DailyController:handle15720( )
  394. local scmd = SCMD15720.New(true)
  395. if scmd.errcode == 1 then
  396. self.model:SetDailyOrderTargetData(scmd)
  397. else
  398. ErrorCodeShow(scmd.errcode)
  399. end
  400. end
  401. --资源找回界面信息
  402. function DailyController:handle41900()
  403. local scmd = SCMD41900.New(true)
  404. self.model:SetResourceRecoveryList(scmd.res_act)
  405. self.model:Fire(DailyModel.ANS_RECOVERY_LIST)
  406. self:DailyControllerCheckRedDot()
  407. end
  408. --一键资源找回
  409. function DailyController:handle41902( )
  410. local scmd = SCMD41902.New(true)
  411. if scmd.errcode == 1 then
  412. GlobalEventSystem:Fire(EventName.PLAY_UI_EFFECT_SOUND,LuaSoundManager.SOUND_UI.SUCCESS)
  413. Message.show("找回成功")
  414. self.model:Fire(DailyModel.REQUEST_CCMD_EVENT, 41900)
  415. else
  416. if scmd.errcode == 1006 then
  417. GlobalEventSystem:Fire(EventName.PLAY_UI_EFFECT_SOUND,LuaSoundManager.SOUND_UI.FAULT)
  418. GlobalEventSystem:Fire(EventName.OPEN_RECHARGE_TIP_VIEW, true)
  419. else
  420. ErrorCodeShow(scmd.errcode)
  421. end
  422. end
  423. end
  424. --资源找回
  425. function DailyController:handle41903()
  426. local scmd = SCMD41903.New(true)
  427. if scmd.errcode == 1 then
  428. GlobalEventSystem:Fire(EventName.PLAY_UI_EFFECT_SOUND,LuaSoundManager.SOUND_UI.SUCCESS)
  429. Message.show("找回成功")
  430. -- local result = self.model:ChangeResourceRecoveryList(scmd)
  431. -- if result then
  432. -- self.model:Fire(DailyModel.ANS_RECOVERY_LIST)
  433. -- else
  434. self.model:Fire(DailyModel.REQUEST_CCMD_EVENT, 41900)
  435. -- end
  436. else
  437. if scmd.errcode == 1006 then
  438. GlobalEventSystem:Fire(EventName.PLAY_UI_EFFECT_SOUND,LuaSoundManager.SOUND_UI.FAULT)
  439. lua_soundM:PlayEffect(self, "fault", false, LuaSoundManager.SOUND_TYPE.UI)
  440. GlobalEventSystem:Fire(EventName.OPEN_RECHARGE_TIP_VIEW, true)
  441. else
  442. ErrorCodeShow(scmd.errcode)
  443. end
  444. end
  445. end
  446. function DailyController:DailyControllerCheckRedDot( )
  447. local function call_backack( )
  448. local is_open_common = GetModuleIsOpen(157,nil,true)
  449. local bool_1 = self.model:CanGetTodayRewardAll( true ) and is_open_common
  450. local bool_3 = self.model:GetCanUpLive(true) and is_open_common
  451. local bool_4 = self.model:GetRecoverRed() and GetModuleIsOpen(419,nil,true)
  452. local bool_5 = self.model:GetHostingRed() and GetModuleIsOpen(113,nil,true)
  453. local bool_6 = self.achieve_model:GetAchieveTotalRedCache( ) and GetModuleIsOpen(409,nil,true)
  454. local bool_7 = self.model:GetDailyOrderRed() and is_open_common
  455. self.model:Fire(DailyModel.CHECK_DAILY_RED_DOT)
  456. GlobalEventSystem:Fire(ActivityIconManager.UPDATE_ICON_TIPS, 157,bool_1 or bool_3 or bool_4 or bool_5 or bool_6 or bool_7)
  457. end
  458. TimeManager.GetInstance():StartTime("DailyControllerCheckRedDotTimeManager", 0.5, call_backack)
  459. end
  460. ----------------------托管开始------------------------
  461. --离线托管: 信息
  462. function DailyController:handle11300()
  463. local scmd = SCMD11300.New(true)
  464. PrintTable(scmd)
  465. self.model:SaveHostingRed()
  466. self:DailyControllerCheckRedDot()
  467. self.model:SetHostingInfo(scmd)
  468. end
  469. --离线托管: 托管日志
  470. function DailyController:handle11301()
  471. local scmd = SCMD11301.New(true)
  472. self.model:SetHostingRecord(scmd)
  473. end
  474. --离线托管: 上线推送托管记录
  475. function DailyController:handle11302()
  476. local scmd = SCMD11302.New(true)
  477. self.model:SetHostingReward(scmd)
  478. end
  479. --离线托管: 设置托管
  480. function DailyController:handle11303()
  481. local scmd = SCMD11303.New(true)
  482. self.model:SetHostingSetting(scmd)
  483. end
  484. ----------------------托管结束-----------------------