Commit 6fcb017ca14a1a3b42de44945246a7f70fbca192

Authored by 陆恒
1 parent c03f60b2
Exists in master

提交

src/HttpServer/jsonconf/jsonconf.go
... ... @@ -196,6 +196,12 @@ func LoadJsonConf() error {
196 196 return err
197 197 }
198 198  
  199 + path = "../jsonconf/RedConfig.json"
  200 + content, err = file_get_contents(path)
  201 + if err != nil {
  202 + logger.Info("loadJsonConf failed1,err=%v", err)
  203 + return err
  204 + }
199 205 err = json.Unmarshal([]byte(content), &g_jsonconf.RedpacketConfig)
200 206 if err != nil {
201 207 logger.Info("loadJsonConf failed1,err=%v", err)
... ...
src/HttpServer/logic/function.go
... ... @@ -905,6 +905,7 @@ func (uinfo *UserData) FetchRedPacket(gameid string, channel string, uuid int) i
905 905 uinfo.FetchRedCnt++
906 906 addgold := jsonconf.GetRedpacketNum(uinfo.FetchRedCnt)
907 907 if addgold == 0 {
  908 + logger.Error("FetchRedPacket fetchcnt=%v", uinfo.FetchRedCnt)
908 909 logger.Error("FetchRedPacket failed addgold=0")
909 910 return 0
910 911 }
... ...