command_award.go 408 B

1234567891011121314151617181920
  1. package client
  2. import (
  3. "encoding/json"
  4. "bet24.com/log"
  5. )
  6. // 发送奖励
  7. func SendAward(userId, activeId, hallType int, ipAddress string) Response {
  8. log.Debug("coreclient.SendAward userId=%d", userId)
  9. msg := "SendAward"
  10. var req Award_req
  11. req.UserId = userId
  12. req.ActiveId = activeId
  13. req.IpAddress = ipAddress
  14. req.HallType = hallType
  15. d, _ := json.Marshal(req)
  16. return DoRequest(msg, string(d))
  17. }