Handler.lua 13 KB

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