Handler.lua 13 KB

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