Exemplo n.º 1
0
        //根据资源版本号获取在cdn上的资源地址
        public static string GetUpdateCdnResUrlByVersion(this ServerConfigComponent self, string resver)
        {
            var platformStr = PlatformUtil.GetStrPlatformIgnoreEditor();
            var url         = string.Format("{0}/{1}_{2}", self.m_cdn_url, resver, platformStr);

            Log.Info("GetUpdateCdnResUrl url = {0}".Fmt(url));
            return(url);
        }
Exemplo n.º 2
0
        //获取更新列表地址, 平台独立
        //格式为json格式
        //    {
        //        "res_list" : {
        //                "100": {
        //                       "1.0.0": {"channel": ["all"], "update_tailnumber": ["all"]},
        //                 }
        //        },
        //        "app_list" : {
        //                 "googleplay": {
        //                      "app_url": "https://www.baidu.com/",
        //                       "app_ver": {
        //	                           "1.0.1": { "force_update": 1 }
        //                       }
        //                  }
        //         }
        //    }
        public static string GetUpdateListCdnUrl(this ServerConfigComponent self)
        {
            var url = string.Format("{0}/update_{1}.list", self.m_update_list_cdn_url, PlatformUtil.GetStrPlatformIgnoreEditor());

            Log.Info("GetUpdateListUrl url = {0}".Fmt(url));
            return(url);
        }