Handler.lua 974 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --------------------------------
  2. -- 文件名 : Voucher/Proto.lua
  3. -- 文件说明 : 代金券协议 处理
  4. -- 创建时间 : 2024/12/16
  5. -- 创建人 : FC
  6. --------------------------------
  7. local voucherShopLogic = require("voucher.VoucherShopLogic")
  8. local VoucherInvest = require("voucher.VoucherInvest")
  9. -- 请求代金券商店信息
  10. function CG_VOUCHER_QUERY_SHOP(human, msg)
  11. voucherShopLogic.VoucherShop_QueryShop(human)
  12. end
  13. -- 请求代金券膨胀信息
  14. function CG_VOUCHER_QUERY_INFLATE(human, msg)
  15. voucherShopLogic.VoucherShop_QueryInflate(human)
  16. end
  17. -- 请求代金券购买商品
  18. function CG_VOUCHER_BUY_ITEM(human, msg)
  19. voucherShopLogic.VoucherShop_BuyItem(human, msg.nBuyID, msg.nBuyNum)
  20. end
  21. function CG_VOUCHER_INVEST_QUERY(human, msg)
  22. VoucherInvest.VoucherInvest_Query(human)
  23. end
  24. function CG_VOUCHER_INVEST_GET(human, msg)
  25. VoucherInvest.VoucherInvest_Get(human)
  26. end