user_adconfig.go 695 B

123456789101112131415161718192021222324252627282930313233
  1. package gatesink
  2. import (
  3. "fmt"
  4. "bet24.com/servers/fishhall/config"
  5. )
  6. /*
  7. 0 - 默认 穿山甲
  8. 10 - 谷歌
  9. 100 - facebook
  10. 11 - 穿山甲+谷歌
  11. 111 - 穿山甲+谷歌+facebook
  12. */
  13. func (this *user) sendAdConfig() {
  14. this.WriteMsg("adconfig", fmt.Sprintf("%d", config.HallConfig.AdConfig))
  15. this.WriteMsg("adbannerclosed", fmt.Sprintf("%d", config.HallConfig.AdBannerClosed))
  16. this.WriteMsg("agentclosed", fmt.Sprintf("%d", config.HallConfig.IsAgentClosed))
  17. // 根据流量渠道打卡对应的支付
  18. utmSource := this.getUTMSource()
  19. for _, v := range config.HallConfig.ThirdPaymentOpen {
  20. if v != utmSource {
  21. continue
  22. }
  23. this.WriteMsg("thirdPaymentOpen", "1")
  24. break
  25. }
  26. }