award.go 426 B

1234567891011121314151617181920212223
  1. package award
  2. import (
  3. item "bet24.com/servers/micros/item_inventory/proto"
  4. )
  5. const (
  6. _ = iota
  7. ActiveTaskAnswer // 问卷调查
  8. ActiveAgentShare // 代理分享
  9. )
  10. // 奖励模块
  11. var mgr *awardMgr
  12. func Run() {
  13. mgr = newAwardMgr()
  14. }
  15. // 发送奖励
  16. func SendAward(userId, activeId, hallType int, ipAddress string) (int, []item.ItemPack) {
  17. return mgr.sendAward(userId, activeId, hallType, ipAddress)
  18. }