Handler.lua 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  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. function CG_ABS_ACT_DETAIL_QUERY(human, msg)
  31. AbsActLogic.actDetailQuery(human,msg.id)
  32. end
  33. -- 盲盒成就 查询
  34. function CG_ABS_ACT_MANGHE_CJ_QUERY(human, msg)
  35. MangHeLogic.queryCj(human)
  36. end
  37. -- 盲盒 概率查询
  38. function CG_ABS_ACT_MANGHE_RARE_QUERY(human, msg)
  39. MangHeLogic.queryRare(human)
  40. end
  41. -- 盲盒 抽奖
  42. function CG_ABS_ACT_MANGHE_DO(human, msg)
  43. MangHeLogic.draw(human, msg.cnt)
  44. end
  45. -- 盲盒 成就领奖
  46. function CG_ABS_ACT_MANGHE_CJ_GET(human)
  47. MangHeLogic.cjGet(human)
  48. end
  49. -- 盲盒 每日领奖
  50. function CG_ABS_ACT_MANGHE_MR_GET(human, msg)
  51. MangHeLogic.mrGet(human, msg.id)
  52. end
  53. function CG_ABS_ACT_PERPLE_HERO_SET(human,msg)
  54. PerpleHeroLogic.setPerpleHero(human,msg.perpleHero,msg.id)
  55. end
  56. function CG_ABS_ACT_PERPLE_HERO_COMBAT(human,msg)
  57. PerpleHeroLogic.heroCombat(human,msg.heroID)
  58. end
  59. function CG_ABS_ACT_GET_HERO_LOG_BOX(human,msg)
  60. HeroLogLogic.getBoxReward(human,msg.index,msg.id)
  61. end
  62. function CG_ABS_ACT_GET_HERO_LOG_TASK(human,msg)
  63. HeroLogLogic.getTaskReward(human,msg.index,msg.id)
  64. end
  65. function CG_ABS_ACT_DROP_SHOP_QUERY(human)
  66. DropExchangeLogic.shopQuery(human)
  67. end
  68. function CG_ABS_ACT_DROP_GIFT_QUERY(human)
  69. DropExchangeLogic.giftQuery(human)
  70. end
  71. function CG_ABS_ACT_DROP_SHOP_BUY(human, msg)
  72. DropExchangeLogic.shopBuy(human, msg.id, msg.buyCnt)
  73. end
  74. -- 积分召唤 兑换英雄
  75. function CG_ABS_ACT_JIFEN_DRAW_BUY(human, msg)
  76. AbsJifenDrawLogic.buy(human, msg.id, msg.actID)
  77. end
  78. -- 英灵传说
  79. function CG__ABS_ACT_HERO_LOGIN_PICK(human, msg)
  80. HeroLoginPickLogic.get(human, msg.type, msg.id, msg.param)
  81. end
  82. -- 占卜轮盘抽奖
  83. function CG_ABS_ZHAN_BU_LUA_PAN_GET(human, msg)
  84. AbsZhanbuLunpanLogic.get(human, msg.id)
  85. end
  86. -- 超值礼包钻石购买
  87. function CG_ABS_ACT_PREMIUM_GIFT_BUY(human, msg)
  88. PremiumGiftLogic.giftBuy(human, msg.id, msg.giftid)
  89. end
  90. function CG_ABS_RECHARGE_BACK_GET(human, msg)
  91. RechargeBackLogic.get(human, msg.panelID, msg.id)
  92. end
  93. function CG_HERO_GROWUP_TASK_QUERY(human, msg)
  94. HeroGrowUp.sendTaskQuery(human, msg.mainType)
  95. end
  96. function CG_HERO_GROWUP_TASK_GET(human, msg)
  97. HeroGrowUp.getTaskItems(human, msg.id)
  98. end
  99. function CG_HERO_GROWUP_KING_QUERY(human)
  100. HeroGrowUp.sendKingQuery(human)
  101. end
  102. function CG_HERO_GROWUP_REWARD_QUERY(human)
  103. HeroGrowUp.sendRewardQuery(human)
  104. end
  105. function CG_HERO_GROWUP_LV_GET(human,msg)
  106. HeroGrowUp.getLvReward(human,msg.lv)
  107. end
  108. function CG_HERO_GROWUP_BUY_JIFEN(human,msg)
  109. HeroGrowUp.buyJifen(human,msg.itemID,msg.cnt)
  110. end
  111. function CG_ABS_365CARD_GET(human,msg)
  112. Abs365CardLogic.get(human,msg.actId)
  113. end
  114. function CG_ABS_365CARD_DRAW(human,msg)
  115. Abs365CardLogic.draw(human,msg.actId)
  116. end
  117. -- 新英雄来袭-英雄降临-设置心仪英雄
  118. function CG_ABS_ACT_HERO_COME_SET(human,msg)
  119. HeroComeLogic.setPerpleHero(human,msg.perpleHero,msg.id)
  120. end
  121. function CG_ABS_ACT_HERO_COME_COMBAT(human,msg)
  122. HeroComeLogic.heroCombat(human,msg.heroID)
  123. end
  124. -- 新英雄来袭-夙愿礼盒-钻石购买
  125. function CG_ABS_ACT_WISH_GIFT_BUY(human, msg)
  126. WishGiftLogic.giftBuy(human, msg.id, msg.giftid)
  127. end
  128. -- 新英雄来袭-每日祈福-领取
  129. function CG_ABS_ACT_EVERY_DAY_PRAY_GET(human, msg)
  130. EveryDayPrayLogic.get(human, msg.type, msg.id, msg.param)
  131. end
  132. -- 新英雄来袭-惊喜宝箱-领取完成任务奖励
  133. function CG_ABS_SURPRISE_CHEST_GET(human, msg)
  134. AbsSurpriseChest.get(human, msg.actId, msg.day)
  135. end
  136. -- 新英雄来袭-惊喜宝箱-补领任务奖励
  137. function CG_ABS_SURPRISE_CHEST_BU_GET(human, msg)
  138. AbsSurpriseChest.buGet(human, msg.actId, msg.day)
  139. end
  140. -- 新英雄来袭-专属任务-箱子奖励
  141. function CG_ABS_ACT_GET_EXCLUSIVE_TASK_BOX(human,msg)
  142. ExclusiveTaskLogic.getBoxReward(human,msg.index,msg.id)
  143. end
  144. -- 新英雄来袭-专属任务-任务奖励
  145. function CG_ABS_ACT_GET_EXCLUSIVE_TASK_TASK(human,msg)
  146. ExclusiveTaskLogic.getTaskReward(human,msg.index,msg.id)
  147. end
  148. function CG_ABS_ND_SEVEN_DAY_GET(human,msg)
  149. SevenDayLogic.getItem(human,msg.day,msg.actId)
  150. end
  151. function CG_ABS_ND_DRUM_GET(human,msg)
  152. DrumBlastingLogic.get(human,msg.id,msg.type,msg.actId)
  153. end
  154. function CG_ABS_ND_CUSTOM_CHOSE_ITEM(human,msg)
  155. SpecialCustomLogic.selectItem(human,msg.id,msg.giftId,msg.first,msg.second,msg.third)
  156. end
  157. function CG_ABS_ND_CUSTOM_GET(human,msg)
  158. SpecialCustomLogic.customBuy(human,msg.id,msg.args)
  159. end
  160. function CG_ABS_HF_USE_DIAMOND_GET(human,msg)
  161. UseDiamondLogic.getUseDiamondReward(human,msg.actId,msg.id)
  162. end
  163. function CG_ABS_HF_WISH_CUP_SELECT(human,msg)
  164. WishCupLogic.selectCup(human,msg.actId,msg.one,msg.two,msg.three)
  165. end
  166. function CG_ABS_XS_REACH_GET(human,msg)
  167. TotalReachLogic.getTotalReachReward(human,msg.actId,msg.id)
  168. end
  169. function CG_ABS_XS_SINGLE_REACH_GET(human,msg)
  170. SingleReachLogic.getSingleReachReward(human,msg.actId,msg.id)
  171. end
  172. function CG_ABS_OPEN_SERVER_REACH_GET(human, msg)
  173. AbsOpenServerTotalConsume.get(human, msg.funcID, msg.id)
  174. end
  175. -- ABS公共排行
  176. function CG_ABS_REACH_RANK_REWARD_QUERY(human, msg)
  177. AbsReachRankLogic.rewardQuery(human, msg.actId, msg.funcRankType)
  178. end
  179. --
  180. function CG_ABS_DAILY_FIXED_TASK_GET(human, msg)
  181. DailyFixedTaskLogic.getItem(human, msg.actId, msg.giftId)
  182. end
  183. function CG_ABS_SIGNGIFT_REWARD(human, msg)
  184. AbsSignGiftLogic.getItem(human, msg.id, msg.funcID, msg.type)
  185. end