y595705120 hace 3 años
padre
commit
a791789d59
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      apis/game/qmbz.go

+ 3 - 1
apis/game/qmbz.go

@@ -136,7 +136,9 @@ func GetGate(c *gin.Context) {
 		Token:           token,
 		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.Opendns), &retData.Opendns)
 	msg := response.NewMessage(response.OK)