command_jackpot.go 642 B

123456789101112131415161718192021222324252627282930
  1. package client
  2. import (
  3. "encoding/json"
  4. _ "bet24.com/log"
  5. )
  6. func GetJackpotAmount(gameId int, isChipRoom bool) int {
  7. msg := "GetJackpotAmount"
  8. var req JackPot_req
  9. req.GameId = gameId
  10. req.IsChipRoom = isChipRoom
  11. d, _ := json.Marshal(req)
  12. resp := DoRequest(msg, string(d))
  13. return resp.RetCode
  14. }
  15. func ModifyJackpot(amount int, gameId int, userId int, desc string, isChipRoom bool) int {
  16. msg := "ModifyJackpot"
  17. var req JackPotModify_req
  18. req.GameId = gameId
  19. req.UserId = userId
  20. req.Amount = amount
  21. req.Desc = desc
  22. req.IsChipRoom = isChipRoom
  23. d, _ := json.Marshal(req)
  24. resp := DoRequest(msg, string(d))
  25. return resp.RetCode
  26. }