|
@@ -41,7 +41,10 @@ func (s *ServiceDownLoadUrl) UpdateGameVersion() {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
dataJson, _ := simplejson.NewJson(result)
|
|
dataJson, _ := simplejson.NewJson(result)
|
|
|
- code, _ := dataJson.Get("code").Int()
|
|
|
|
|
|
|
+ code, err := dataJson.Get("code").Int()
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
//global.GVA_LOG.Info(strconv.Itoa(code))
|
|
//global.GVA_LOG.Info(strconv.Itoa(code))
|
|
|
//msg, _ := dataJson.Get("msg").String()
|
|
//msg, _ := dataJson.Get("msg").String()
|
|
|
//global.GVA_LOG.Info(msg)
|
|
//global.GVA_LOG.Info(msg)
|