Handler.lua 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. local AbsActLogic = require("absAct.AbsActLogic")
  2. local MangHeLogic = require("absAct.MangHeLogic")
  3. local PerpleHeroLogic = require("absAct.PerpleHeroLogic")
  4. local HeroLogLogic = require("absAct.HeroLogLogic")
  5. local DropExchangeLogic = require("absAct.DropExchangeLogic")
  6. local AbsJifenDrawLogic = require("absAct.AbsJifenDrawLogic")
  7. local HeroLoginPickLogic = require("absAct.HeroLoginPickLogic")
  8. local AbsZhanbuLunpanLogic = require("absAct.AbsZhanbuLunpanLogic")
  9. local RechargeBackLogic = require("absAct.RechargeBackLogic")
  10. local HeroGrowUp = require("absAct.HeroGrowUp")
  11. local Abs365CardLogic = require("absAct.Abs365CardLogic")
  12. local HeroComeLogic = require("absAct.HeroComeLogic")
  13. local WishGiftLogic = require("absAct.WishGiftLogic")
  14. local EveryDayPrayLogic = require("absAct.EveryDayPrayLogic")
  15. local AbsSurpriseChest = require("absAct.AbsSurpriseChest")
  16. local SpecialCustomLogic = require("absAct.SpecialCustomLogic")
  17. local SevenDayLogic = require("absAct.SevenDayLogic")
  18. local DrumBlastingLogic = require("absAct.DrumBlastingLogic")
  19. local PremiumGiftLogic = require("absAct.PremiumGiftLogic")
  20. local ExclusiveTaskLogic = require("absAct.ExclusiveTaskLogic")
  21. local UseDiamondLogic = require("absAct.UseDiamondLogic")
  22. local WishCupLogic = require("absAct.WishCupLogic")
  23. local SingleReachLogic = require("absAct.SingleReachLogic")
  24. local TotalReachLogic = require("absAct.TotalReachLogic")
  25. local AbsOpenServerTotalConsume = require("absAct.AbsOpenServerTotalConsume")
  26. local AbsReachRankLogic = require("absAct.AbsReachRankLogic")
  27. local DailyFixedTaskLogic = require("absAct.DailyFixedTaskLogic")
  28. local FestivalSevenDayCardLogic = require("absAct.FestivalSevenDayCardLogic")
  29. local AbsSignGiftLogic = require("absAct.AbsSignGiftLogic")
  30. local NewHeroLogic = require("absAct.NewHeroLogic")
  31. local LotteryByDiamondLogic = require("absAct.LotteryByDiamondLogic")
  32. local DuoBaoQiBingLogic = require("absAct.DuoBaoQiBingLogic")
  33. local AbsLoginRewardLogic = require("absAct.AbsLoginRewardLogic")
  34. local AbsDiscountStoreLogic = require("absAct.AbsDiscountStoreLogic")
  35. local AbsExcellentGiftLogic = require("absAct.AbsExcellentGiftLogic")
  36. local AbsLotteryCardLogic = require("absAct.AbsLotteryCardLogic")
  37. function CG_ABS_ACT_DETAIL_QUERY(human, msg)
  38. AbsActLogic.actDetailQuery(human,msg.id)
  39. end
  40. -- 盲盒成就 查询
  41. function CG_ABS_ACT_MANGHE_CJ_QUERY(human, msg)
  42. MangHeLogic.queryCj(human)
  43. end
  44. -- 盲盒 概率查询
  45. function CG_ABS_ACT_MANGHE_RARE_QUERY(human, msg)
  46. MangHeLogic.queryRare(human)
  47. end
  48. -- 盲盒 抽奖
  49. function CG_ABS_ACT_MANGHE_DO(human, msg)
  50. MangHeLogic.draw(human, msg.cnt)
  51. end
  52. -- 盲盒 成就领奖
  53. function CG_ABS_ACT_MANGHE_CJ_GET(human)
  54. MangHeLogic.cjGet(human)
  55. end
  56. -- 盲盒 每日领奖
  57. function CG_ABS_ACT_MANGHE_MR_GET(human, msg)
  58. MangHeLogic.mrGet(human, msg.id)
  59. end
  60. function CG_ABS_ACT_PERPLE_HERO_SET(human,msg)
  61. PerpleHeroLogic.setPerpleHero(human,msg.perpleHero,msg.id)
  62. end
  63. function CG_ABS_ACT_PERPLE_HERO_COMBAT(human,msg)
  64. PerpleHeroLogic.heroCombat(human,msg.heroID)
  65. end
  66. function CG_ABS_ACT_GET_HERO_LOG_BOX(human,msg)
  67. HeroLogLogic.getBoxReward(human,msg.index,msg.id)
  68. end
  69. function CG_ABS_ACT_GET_HERO_LOG_TASK(human,msg)
  70. HeroLogLogic.getTaskReward(human,msg.index,msg.id)
  71. end
  72. function CG_ABS_ACT_DROP_SHOP_QUERY(human)
  73. DropExchangeLogic.shopQuery(human)
  74. end
  75. function CG_ABS_ACT_DROP_GIFT_QUERY(human)
  76. DropExchangeLogic.giftQuery(human)
  77. end
  78. function CG_ABS_ACT_DROP_SHOP_BUY(human, msg)
  79. DropExchangeLogic.shopBuy(human, msg.id, msg.buyCnt)
  80. end
  81. -- 积分召唤 兑换英雄
  82. function CG_ABS_ACT_JIFEN_DRAW_BUY(human, msg)
  83. AbsJifenDrawLogic.buy(human, msg.id, msg.actID)
  84. end
  85. -- 英灵传说
  86. function CG__ABS_ACT_HERO_LOGIN_PICK(human, msg)
  87. HeroLoginPickLogic.get(human, msg.type, msg.id, msg.param)
  88. end
  89. -- 占卜轮盘抽奖
  90. function CG_ABS_ZHAN_BU_LUA_PAN_GET(human, msg)
  91. AbsZhanbuLunpanLogic.get(human, msg.id)
  92. end
  93. -- 超值礼包钻石购买
  94. function CG_ABS_ACT_PREMIUM_GIFT_BUY(human, msg)
  95. PremiumGiftLogic.giftBuy(human, msg.id, msg.giftid)
  96. end
  97. function CG_ABS_RECHARGE_BACK_GET(human, msg)
  98. RechargeBackLogic.get(human, msg.panelID, msg.id)
  99. end
  100. function CG_HERO_GROWUP_TASK_QUERY(human, msg)
  101. HeroGrowUp.sendTaskQuery(human, msg.mainType)
  102. end
  103. function CG_HERO_GROWUP_TASK_GET(human, msg)
  104. HeroGrowUp.getTaskItems(human, msg.id)
  105. end
  106. function CG_HERO_GROWUP_KING_QUERY(human)
  107. HeroGrowUp.sendKingQuery(human)
  108. end
  109. function CG_HERO_GROWUP_REWARD_QUERY(human)
  110. HeroGrowUp.sendRewardQuery(human)
  111. end
  112. function CG_HERO_GROWUP_LV_GET(human,msg)
  113. HeroGrowUp.getLvReward(human,msg.lv)
  114. end
  115. function CG_HERO_GROWUP_BUY_JIFEN(human,msg)
  116. HeroGrowUp.buyJifen(human,msg.itemID,msg.cnt)
  117. end
  118. function CG_ABS_365CARD_GET(human,msg)
  119. Abs365CardLogic.get(human,msg.actId)
  120. end
  121. function CG_ABS_365CARD_DRAW(human,msg)
  122. Abs365CardLogic.draw(human,msg.actId)
  123. end
  124. -- 新英雄来袭-英雄降临-设置心仪英雄
  125. function CG_ABS_ACT_HERO_COME_SET(human,msg)
  126. HeroComeLogic.setPerpleHero(human,msg.perpleHero,msg.id)
  127. end
  128. function CG_ABS_ACT_HERO_COME_COMBAT(human,msg)
  129. HeroComeLogic.heroCombat(human,msg.heroID)
  130. end
  131. -- 新英雄来袭-夙愿礼盒-钻石购买
  132. function CG_ABS_ACT_WISH_GIFT_BUY(human, msg)
  133. WishGiftLogic.giftBuy(human, msg.id, msg.giftid)
  134. end
  135. -- 新英雄来袭-每日祈福-领取
  136. function CG_ABS_ACT_EVERY_DAY_PRAY_GET(human, msg)
  137. EveryDayPrayLogic.get(human, msg.type, msg.id, msg.param)
  138. end
  139. -- 新英雄来袭-惊喜宝箱-领取完成任务奖励
  140. function CG_ABS_SURPRISE_CHEST_GET(human, msg)
  141. AbsSurpriseChest.get(human, msg.actId, msg.day)
  142. end
  143. -- 新英雄来袭-惊喜宝箱-补领任务奖励
  144. function CG_ABS_SURPRISE_CHEST_BU_GET(human, msg)
  145. AbsSurpriseChest.buGet(human, msg.actId, msg.day)
  146. end
  147. -- 新英雄来袭-专属任务-箱子奖励
  148. function CG_ABS_ACT_GET_EXCLUSIVE_TASK_BOX(human,msg)
  149. ExclusiveTaskLogic.getBoxReward(human,msg.index,msg.id)
  150. end
  151. -- 新英雄来袭-专属任务-任务奖励
  152. function CG_ABS_ACT_GET_EXCLUSIVE_TASK_TASK(human,msg)
  153. ExclusiveTaskLogic.getTaskReward(human,msg.index,msg.id)
  154. end
  155. function CG_ABS_ND_SEVEN_DAY_GET(human,msg)
  156. SevenDayLogic.getItem(human,msg.day,msg.actId)
  157. end
  158. function CG_ABS_ND_DRUM_GET(human,msg)
  159. DrumBlastingLogic.get(human,msg.id,msg.type,msg.actId)
  160. end
  161. function CG_ABS_ND_CUSTOM_CHOSE_ITEM(human,msg)
  162. SpecialCustomLogic.selectItem(human,msg.id,msg.giftId,msg.first,msg.second,msg.third)
  163. end
  164. function CG_ABS_ND_CUSTOM_GET(human,msg)
  165. SpecialCustomLogic.customBuy(human,msg.id,msg.args)
  166. end
  167. function CG_ABS_HF_USE_DIAMOND_GET(human,msg)
  168. UseDiamondLogic.getUseDiamondReward(human,msg.actId,msg.id)
  169. end
  170. function CG_ABS_HF_WISH_CUP_SELECT(human,msg)
  171. WishCupLogic.selectCup(human,msg.actId,msg.one,msg.two,msg.three)
  172. end
  173. function CG_ABS_XS_REACH_GET(human,msg)
  174. TotalReachLogic.getTotalReachReward(human,msg.actId,msg.id)
  175. end
  176. function CG_ABS_XS_SINGLE_REACH_GET(human,msg)
  177. SingleReachLogic.getSingleReachReward(human,msg.actId,msg.id)
  178. end
  179. function CG_ABS_OPEN_SERVER_REACH_GET(human, msg)
  180. AbsOpenServerTotalConsume.get(human, msg.funcID, msg.id)
  181. end
  182. -- ABS公共排行
  183. function CG_ABS_REACH_RANK_REWARD_QUERY(human, msg)
  184. AbsReachRankLogic.rewardQuery(human, msg.actId, msg.funcRankType)
  185. end
  186. --
  187. function CG_ABS_DAILY_FIXED_TASK_GET(human, msg)
  188. DailyFixedTaskLogic.getItem(human, msg.actId, msg.giftId)
  189. end
  190. function CG_ABS_SIGNGIFT_REWARD(human, msg)
  191. AbsSignGiftLogic.getItem(human, msg.id, msg.funcID, msg.type)
  192. end
  193. function CG_ABS_NEWHERO_BUYGIFT(human, msg)
  194. NewHeroLogic.giftBuy(human, msg.id)
  195. end
  196. ------------------------古玉充能活动抽奖-----------------------
  197. function CG_LOTTERYBYDIAMONDS_LOTTERY(human, msg)
  198. LotteryByDiamondLogic.Lottery(human, msg.id, msg.type)
  199. end
  200. ----------------------夺宝奇兵活动----------------------------
  201. function CG_DBQB_LOTTERY(human, msg)
  202. DuoBaoQiBingLogic.Lottery(human, msg.id, msg.pos)
  203. end
  204. function CG_DBQB_RESET(human, msg)
  205. DuoBaoQiBingLogic.ResetAwardPool(human, msg.id, msg.type)
  206. end
  207. function CG_DBQB_START_GAME(human, msg)
  208. DuoBaoQiBingLogic.StartGame(human, msg.id)
  209. end
  210. function CG_DBQB_TIPS(human, msg)
  211. DuoBaoQiBingLogic.CloseTips(human, msg.id)
  212. end
  213. --------------------------------------------------新商业化活动——登录豪礼--------------------------------------------------
  214. function CG_LOGINREWARD_GET_REWARD(human, msg)
  215. AbsLoginRewardLogic.GetReward(human, msg.id, msg.day)
  216. end
  217. --------------------------------------------------新商业化活动——特价商店--------------------------------------------------
  218. function CG_DISCOUNTSTORE_BUY(human, msg)
  219. AbsDiscountStoreLogic.BuyItem(human, msg.id, msg.idx, msg.buyCnt)
  220. end
  221. --------------------------------------------------新商业化活动——超值豪礼--------------------------------------------------
  222. function CG_EXCELLENTGIFT_QUERY(human, msg)
  223. AbsExcellentGiftLogic.Query(human, msg.id, msg.page)
  224. end
  225. function CG_EXCELLENTGIFT_GET_REWARD(human, msg)
  226. AbsExcellentGiftLogic.GetReward(human, msg.id, msg.taskIdx, msg.page)
  227. end
  228. function CG_EXCELLENTGIFT_FINISH_TASK(human, msg)
  229. AbsExcellentGiftLogic.FinishTaskByDiamond(human, msg.id, msg.taskIdx, msg.page)
  230. end
  231. -----------------------------------------------------新商业化活动——秘境翻牌--------------------------------------------------
  232. function CG_LOTTERYCARD_LOTTERY(human, msg)
  233. AbsLotteryCardLogic.Lottery(human, msg.id, msg.lotteryCnt)
  234. end
  235. function CG_LOTTERYCARD_RESET(human, msg)
  236. AbsLotteryCardLogic.ResetAward(human, msg.id)
  237. end