Handler.lua 8.7 KB

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