Handler.lua 12 KB

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