Handler.lua 11 KB

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