|
@@ -136,7 +136,9 @@ func GetGate(c *gin.Context) {
|
|
Token: token,
|
|
Token: token,
|
|
RealAuth: 2,
|
|
RealAuth: 2,
|
|
}
|
|
}
|
|
- json.Unmarshal([]byte(rowServer.Net), &retData.Net)
|
|
|
|
|
|
+ if err := json.Unmarshal([]byte(rowServer.Net), &retData.Net); err != nil {
|
|
|
|
+ logger.Info("parse net", err.Error())
|
|
|
|
+ }
|
|
json.Unmarshal([]byte(rowServer.Tpl), &retData.Tpl)
|
|
json.Unmarshal([]byte(rowServer.Tpl), &retData.Tpl)
|
|
json.Unmarshal([]byte(rowServer.Opendns), &retData.Opendns)
|
|
json.Unmarshal([]byte(rowServer.Opendns), &retData.Opendns)
|
|
msg := response.NewMessage(response.OK)
|
|
msg := response.NewMessage(response.OK)
|