예제 #1
0
 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);
     }
 }
예제 #2
0
 private void Init()
 {
     ColaBuildTool.ClearEnvironmentVariable();
 }