wel.go 898 B

1234567891011121314151617181920212223242526272829303132333435
  1. package wel
  2. import (
  3. "active/tools"
  4. "fmt"
  5. // "git.jiaxianghudong.com/webs/pkg/vipers"
  6. )
  7. var WelConf WelConfig
  8. var WelConf2 WelConfig
  9. type WelConfig struct {
  10. Bean [][]int64 `json:"bean" yaml:"bean"`
  11. RateList []struct {
  12. Number []int64 `json:"number" yaml:"number"`
  13. Rate []int `json:"rate" yaml:"rate"`
  14. } `json:"rate_list" yaml:"rate_list"`
  15. New []int64 `json:"new" yaml:"new"`
  16. VideoUser struct { // 视频号过来的用户
  17. Dataid int32 `json:"dataid" yaml:"dataid"`
  18. NewuserAward int64 `json:"newuser_award" yaml:"newuser_award"` // 新用户奖励
  19. OlduserAward []int64 `json:"olduser_award" yaml:"olduser_award"` // 老用户奖励
  20. } `json:"video_user" yaml:"video_user"`
  21. }
  22. func Init() {
  23. tools.ReloadYaml("anchor.yaml", &WelConf)
  24. fmt.Printf("ff %+v \n", WelConf)
  25. tools.ReloadYaml("anchor2.yaml", &WelConf2)
  26. fmt.Printf("ff anchor2 %+v \n", WelConf2)
  27. }