private void Init() { ColaBuildTool.ClearEnvironmentVariable(); try { var path = ColaEditHelper.TempCachePath + "/" + CDN_CACHE_PATH; var content = FileHelper.ReadString(path); if (!string.IsNullOrEmpty(content)) { var cdnInfo = JsonMapper.ToObject <CDNInfo>(content); if (null != cdnInfo) { CDNURL = cdnInfo.CDNURL; CDNUserName = cdnInfo.CDNUserName; CDNPassword = cdnInfo.CDNPassword; } } } catch (Exception ex) { Debug.LogError("尝试读取CDN配置时报错!" + ex.Message); } }
private void Init() { ColaBuildTool.ClearEnvironmentVariable(); }