|
|
@@ -586,6 +586,21 @@ func GetHeadInfo(c *gin.Context) {
|
|
|
"err": "OK",
|
|
|
})
|
|
|
}
|
|
|
+func GetServerDownLoad(c *gin.Context) {
|
|
|
+ platform := c.DefaultQuery("platform", "0")
|
|
|
+ if serviceConfig != nil {
|
|
|
+ var url string
|
|
|
+ url = serviceConfig.DownLoadUrl.CdnUrl
|
|
|
+ if platform == "PC" {
|
|
|
+ url = serviceConfig.DownLoadUrl.IpUrl
|
|
|
+ }
|
|
|
+ c.JSON(http.StatusOK, url)
|
|
|
+ } else {
|
|
|
+ c.JSON(http.StatusOK, gin.H{
|
|
|
+ "err": "config invalid!!!",
|
|
|
+ })
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
func GetServerListNew(c *gin.Context) {
|
|
|
//util.InfoF("RequestURL=%v", c.Request.RequestURI)
|