y595705120 3 năm trước cách đây
mục cha
commit
a791789d59
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      apis/game/qmbz.go

+ 3 - 1
apis/game/qmbz.go

@@ -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)