Handler.lua 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. local TequanShopLogic = require("present.TequanShopLogic")
  2. local FundLogic = require("present.FundLogic")
  3. local CDK = require("present.CDK")
  4. local FirstChargeLogic = require("present.FirstChargeLogic")
  5. local SuperFundLogic = require("present.SuperFundLogic")
  6. local SevenDayGiftLogic = require("present.SevenDayGiftLogic")
  7. local LeichongHaoli = require("present.LeichongHaoli")
  8. local DailyLeichong = require("present.DailyLeichong")
  9. local SpecificLogic = require("present.SpecificLogic")
  10. local ChongJiLogic = require("present.ChongJiLogic")
  11. local KingWorldLogic = require("present.KingWorldLogic")
  12. local SharePlatformLogic = require("present.SharePlatformLogic")
  13. local TuiSongLiBao = require("present.TuiSongLiBao")
  14. local RelationGiftLogic = require("present.RelationGiftLogic")
  15. local WeekendFuli = require("present.WeekendFuli")
  16. local WelfareGiftLogic = require("present.WelfareGiftLogic")
  17. local LimitBuy = require("present.LimitBuy")
  18. local LeijiChongzhi = require("present.LeijiChongzhi")
  19. local ActHeroRiseLogic = require("present.ActHeroRiseLogic")
  20. local ActCustomizeLogic = require("present.ActCustomizeLogic")
  21. local MiLingLogic = require("present.MiLingLogic")
  22. local OpenServerGiftLogic = require("present.OpenServerGiftLogic")
  23. local MonthCard = require("present.MonthCard")
  24. local GiftPackLogic = require("present.GiftPackLogic")
  25. local MengxinLogic = require("present.MengxinLogic")
  26. local RechargeBackLogic = require("present.RechargeBackLogic")
  27. local LimitMangHeLogic = require("present.LimitMangHeLogic")
  28. local LimitPerpleHeroLogic = require("present.LimitPerpleHeroLogic")
  29. local OverflowFundLogic = require("present.OverflowFundLogic")
  30. local OpenServerSingleCharge = require("present.OpenServerSingleCharge")
  31. local OpenServerTotalConsume = require("present.OpenServerTotalConsume")
  32. local OpenServerRank = require("present.OpenServerRank")
  33. local DailyLibaoLogic = require("present.DailyLibaoLogic")
  34. local RichangLibaoLogic = require("present.RichangLibaoLogic")
  35. local OpenServerActPowerUp = require("present.OpenServerActPowerUp")
  36. local OpenServerActAddUpCharge = require("present.OpenServerActAddUpCharge")
  37. -- 充值-特权商店
  38. function CG_TEQUANSHOP_QUERY(human)
  39. TequanShopLogic.sendQuery(human)
  40. end
  41. function CG_TEQUANSHOP_BUY(human, msg)
  42. TequanShopLogic.buyLibao(human, msg.id, TequanShopLogic.COST_ZUANSHI)
  43. end
  44. -- 钻石基金查询
  45. function CG_TEQUAN_ZSJIJIN_QUERY(human,msg)
  46. FundLogic.query(human, msg.type)
  47. end
  48. -- cdkey
  49. function CG_CDK(human,msg)
  50. CDK.CG_CDK(human,msg)
  51. end
  52. function CG_FIRST_CHARGE_GIFT_QUERY(human,msg)
  53. FirstChargeLogic.sendQuery(human,msg.type)
  54. end
  55. function CG_FIRST_CHARGE_GIFT_GET(human, msg)
  56. FirstChargeLogic.getItems(human, msg.id)
  57. end
  58. function CG_SUPER_FUND_QUERY(human,msg)
  59. SuperFundLogic.superFundQuery(human,msg.type)
  60. end
  61. function CG_SUPER_FUND_REWARD_QUERY(human,msg)
  62. SuperFundLogic.rewardQuery(human,msg.type)
  63. end
  64. function CG_SEVENDAYGIFT_QUERY(human)
  65. SevenDayGiftLogic.query(human)
  66. end
  67. function CG_SEVENDAYGIFT_GET(human,msg)
  68. SevenDayGiftLogic.getDailyReward(human,msg.id)
  69. end
  70. function CG_LEICHONG_HAOLI_QUERY(human)
  71. LeichongHaoli.query(human)
  72. end
  73. function CG_LEICHONG_HAOLI_GET(human,msg)
  74. LeichongHaoli.get(human, msg.id)
  75. end
  76. function CG_DAILY_LEICHONG_QUERY(human)
  77. DailyLeichong.query(human)
  78. end
  79. function CG_SPECIFIC_QUERY(human, msg)
  80. SpecificLogic.query(human, msg.id)
  81. end
  82. function CG_SPECIFIC_BUY_ITEM(human, msg)
  83. SpecificLogic.buy(human, msg.id, msg.buyCnt)
  84. end
  85. function CG_PRESENT_CHONGJI_QUERY(human)
  86. ChongJiLogic.query(human)
  87. end
  88. function CG_PRESENT_CHONGJI_GET(human, msg)
  89. ChongJiLogic.getChongJiReward(human, msg.id)
  90. end
  91. function CG_PRESENT_KING_WORLD_QUERY(human)
  92. KingWorldLogic.query(human)
  93. end
  94. function CG_PRESENT_KING_WORLD_GET(human, msg)
  95. KingWorldLogic.getReward(human, msg.id)
  96. end
  97. function CG_PRESENT_OPEN_SERVER_QUERY(human)
  98. OpenServerGiftLogic.query(human)
  99. end
  100. function CG_PRESENT_OPEN_SERVER_GIFT_GET(human, msg)
  101. OpenServerGiftLogic.gift(human, msg.day)
  102. end
  103. function CG_PRESENT_TUISONGLIBAO_QUERY(human)
  104. TuiSongLiBao.CG_PRESENT_TUISONGLIBAO_QUERY(human)
  105. end
  106. function CG_PRESENT_TUISONGLIBAO_REFRESH(human)
  107. TuiSongLiBao.CG_PRESENT_TUISONGLIBAO_REFRESH(human)
  108. end
  109. function CG_SHARE_PLATFORM_FIRST_QUERY(human)
  110. SharePlatformLogic.sendFirstQuery(human)
  111. end
  112. function CG_SHARE_PLATFORM_FIRST_INVATE(human)
  113. SharePlatformLogic.shareInvate(human)
  114. end
  115. function CG_SHARE_PLATFORM_REWARDS_QUERY(human)
  116. SharePlatformLogic.sendRewardQuery(human)
  117. end
  118. function CG_SHARE_PLATFORM_REWARDS_GET(human, msg)
  119. SharePlatformLogic.getReward(human, msg.id)
  120. end
  121. function CG_SHARE_PLATFORM_BOARD_QUERY(human)
  122. SharePlatformLogic.sendBoard(human)
  123. end
  124. function CG_SHARE_PLATFORM_BOARD_REWARD(human)
  125. SharePlatformLogic.sendBoardReward(human)
  126. end
  127. function CG_SHARE_PLATFORM_GROUP_QUERY(human)
  128. SharePlatformLogic.sendGroupQuery(human)
  129. end
  130. function CG_SHARE_PLATFORM_GROUP_GET(human)
  131. SharePlatformLogic.getGroupReward(human)
  132. end
  133. function CG_SHARE_PLATFORM_GROUP_SHAREOK(human)
  134. SharePlatformLogic.groupShareOK(human)
  135. end
  136. function CG_RELATION_GIFT_QUERY(human)
  137. RelationGiftLogic.relationQuery(human)
  138. end
  139. function CG_RELATION_GIFT_GET(human, msg)
  140. RelationGiftLogic.relationRewardGet(human, msg.id)
  141. end
  142. function CG_RELATION_GIFT_BIND(human, msg)
  143. RelationGiftLogic.relationBind(human, msg.relationId)
  144. end
  145. function CG_WEEKEND_FULI_QUERY(human)
  146. WeekendFuli.sendQuery(human)
  147. end
  148. function CG_WEEKEND_FULI_GET(human, msg)
  149. WeekendFuli.getItems(human, msg.id)
  150. end
  151. function CG_WELFARE_GIFT_QUERY(human, msg)
  152. WelfareGiftLogic.query(human, msg)
  153. end
  154. function CG_WELFARE_GIFT_BUY(human, msg)
  155. WelfareGiftLogic.buy(human, msg.id)
  156. end
  157. function CG_LIMITBUY_QUERY(human,msg)
  158. LimitBuy.query(human)
  159. end
  160. function CG_LEIJICHONGZHI_QUERY(human,msg)
  161. LeijiChongzhi.query(human)
  162. end
  163. function CG_LEIJICHONGZHI_GET(human,msg)
  164. LeijiChongzhi.get(human,msg.id)
  165. end
  166. function CG_TEQUAN_ZSJIJIN_GET(human,msg)
  167. FundLogic.fundGet(human, msg.id, msg.type)
  168. end
  169. -- 英雄崛起查询
  170. function CG_ACT_HERO_RISE_QUERY(human)
  171. ActHeroRiseLogic.heroRiseQuery(human)
  172. end
  173. -- 英雄崛起任务奖励领取
  174. function CG_ACT_HERO_RISE_TASK_GET(human,msg)
  175. ActHeroRiseLogic.getTaskReward(human,msg.id)
  176. end
  177. function CG_ACT_CUSTOMIZE_QUERY(human)
  178. ActCustomizeLogic.customizeQuery(human)
  179. end
  180. function CG_ACT_CUSTOMIZE_SELECT(human,msg)
  181. ActCustomizeLogic.selectItem(human,msg.id,msg.first,msg.second,msg.third)
  182. end
  183. function CG_PRESENT_MILING_REWARD_QUERY(human, msg)
  184. MiLingLogic.queryReward(human, msg.queryType)
  185. end
  186. function CG_PRESENT_MILING_REWARD_GET(human ,msg )
  187. MiLingLogic.getReward(human, msg.queryType, msg.id)
  188. end
  189. function CG_MONTH_CARD_QUERY(human)
  190. MonthCard.query(human)
  191. end
  192. function CG_MONTH_CARD_GET(human,msg)
  193. MonthCard.get(human, msg.id)
  194. end
  195. -- 成长礼包
  196. function CG_GIFT_PACK_QUERY(human, msg)
  197. GiftPackLogic.sendQuery(human)
  198. end
  199. function CG_OA_MENGXIN_QUERY(human,msg)
  200. MengxinLogic.query(human,msg.day)
  201. end
  202. function CG_GET_MENGXIN_TASK(human,msg)
  203. MengxinLogic.getTaskReward(human,msg.day,msg.id)
  204. end
  205. function CG_GET_MENGXIN_REACH(human,msg)
  206. MengxinLogic.getReachReward(human,msg.day,msg.id)
  207. end
  208. -- 充值返利查询
  209. function CG_RECHARGE_BACK_QUERY(human)
  210. RechargeBackLogic.query(human)
  211. end
  212. function CG_RECHARGE_BACK_GET(human, msg)
  213. RechargeBackLogic.get(human, msg.id)
  214. end
  215. -- 开服活动 限时盲盒
  216. function CG_OA_LIMIT_MANGHE_QUERY(human, msg)
  217. LimitMangHeLogic.query(human, msg.param)
  218. end
  219. function CG_OA_LIMIT_MANGHE_GET(human, msg)
  220. LimitMangHeLogic.getBox(human, msg.param)
  221. end
  222. function CG_OA_LIMIT_PERPLEHERO_QUERY(human, msg)
  223. LimitPerpleHeroLogic.getAndSendMsg(human, msg.param)
  224. end
  225. function CG_OA_LIMIT_PERPLE_HERO_SET(human, msg)
  226. LimitPerpleHeroLogic.setPerpleHero(human, msg.perpleHero, msg.param)
  227. end
  228. function CG_OVERFLOW_FUND_QUERY(human,msg)
  229. OverflowFundLogic.overflowQuery(human,msg.type)
  230. end
  231. function CG_OVERFLOW_FUND_GET(human,msg)
  232. OverflowFundLogic.getFundReward(human,msg.type)
  233. end
  234. function CG_OPEN_SERVER_SINGLE_CHARGE_QUERY(human)
  235. OpenServerSingleCharge.query(human)
  236. end
  237. function CG_OPEN_SERVER_SINGLE_CHARGE_GET(human, msg)
  238. OpenServerSingleCharge.get(human, msg.actId, msg.id)
  239. end
  240. function CG_OPEN_SERVER_REACH_QUERY(human,msg)
  241. OpenServerTotalConsume.query(human,msg.type)
  242. end
  243. function CG_OPEN_SERVER_REACH_GET(human, msg)
  244. OpenServerTotalConsume.get(human, msg.actId, msg.type, msg.id)
  245. end
  246. function CG_OPEN_SERVER_RANK_QUERY(human, msg)
  247. OpenServerRank.query(human, msg.type)
  248. end
  249. function CG_OPEN_SERVER_RANK_REWARD_QUERY(human, msg)
  250. OpenServerRank.rewardQuery(human, msg.type)
  251. end
  252. -- 充值-每日礼包
  253. function CG_PRE_DAILY_LIBAO_QUERY(human)
  254. DailyLibaoLogic.sendQuery(human)
  255. end
  256. function CG_PRE_DAILY_LIBAO_FREE_GET(human)
  257. DailyLibaoLogic.getPreFreeLibao(human)
  258. end
  259. -- 充值-每周/每月礼包
  260. function CG_RICHANG_LIBAO_QUERY(human, msg)
  261. RichangLibaoLogic.sendQuery(human, msg.libaoType)
  262. end
  263. function CG_RICHANG_LIBAO_BUY(human, msg)
  264. RichangLibaoLogic.buyLibao(human, msg.libaoType, msg.id, RichangLibaoLogic.FREE_BUY)
  265. end
  266. ----- 开服活动-战力冲刺
  267. function CG_PRESENT_OPEN_POWERUP_QUERY(human, msg)
  268. OpenServerActPowerUp.ActPowerUp_Query(human)
  269. end
  270. function CG_PRESENT_OPEN_POWERUP_GETPRIZE(human, msg)
  271. OpenServerActPowerUp.ActPowerUp_GetPrize(human, msg.nID)
  272. end
  273. function CG_PRESEN_OPEN_ADDUP_CHARGE_QUERY(human, msg)
  274. OpenServerActAddUpCharge.ActAddUpCharge_Query(human)
  275. end
  276. function CG_PRESENT_OPEN_ADDUP_CHARGE_GETPRIZE(human, msg)
  277. OpenServerActAddUpCharge.ActAddUpCharge_GetPrize(human, msg.nID)
  278. end