user_withdraw.go 498 B

12345678910111213141516171819202122232425
  1. package gatesink
  2. import (
  3. "encoding/json"
  4. "fmt"
  5. "bet24.com/log"
  6. "bet24.com/servers/transaction"
  7. )
  8. // 提现信息(提现前调用)
  9. func (this *user) withdrawInfo(msg string) {
  10. obj := transaction.NewLiuWithdrawInfo()
  11. obj.In.UserID = this.getUserId()
  12. obj.DoAction()
  13. buf, err := json.Marshal(obj.Out)
  14. if err != nil {
  15. retData := fmt.Sprintf("withdrawInfo DoAction marshal fail %v", err)
  16. log.Release(retData)
  17. this.WriteMsg(msg, retData)
  18. return
  19. }
  20. this.WriteMsg(msg, string(buf))
  21. }