/// <summary> /// 从CDN加载资源信息 /// </summary> /// <param name="args"></param> private void OnLoadAssetInfoFromCDN(HttpCallBackArgs args) { if (!args.HasError) { InitAssetInfo(args.Data); } else { GameEntry.Log(LogCategory.Resource, args.Value); } }
/// <summary> /// 初始化CDN资源包信息回调 /// </summary> /// <param name="args"></param> private void OnInitCDNAssetBundleInfo(HttpCallBackArgs args) { if (!args.HasError) { m_CNDVersionDic = GetAssetBundleVersionList(args.Data, ref m_CDNVersion); GameEntry.Log(LogCategory.Resource, "OnInitCDNAssetBundleInfo"); CheckVersionFileExistsInLocal(); } else { GameEntry.Log(LogCategory.Resource, args.Value); } }
private void OnWebAccountInit(HttpCallBackArgs args) { if (!args.HasError) { LitJson.JsonData data = LitJson.JsonMapper.ToObject(args.Value); LitJson.JsonData config = LitJson.JsonMapper.ToObject(data["Value"].ToString()); GameEntry.Data.SysDataManager.CurrChannelConfig.ServerTime = long.Parse(config["ServerTime"].ToString()); GameEntry.Data.SysDataManager.CurrChannelConfig.SourceVersion = config["SourceVersion"].ToString(); GameEntry.Data.SysDataManager.CurrChannelConfig.SourceUrl = config["SourceUrl"].ToString(); GameEntry.Data.SysDataManager.CurrChannelConfig.RechargeUrl = config["RechargeUrl"].ToString(); GameEntry.Data.SysDataManager.CurrChannelConfig.TDAppId = config["TDAppId"].ToString(); GameEntry.Data.SysDataManager.CurrChannelConfig.IsOpenTD = int.Parse(config["IsOpenTD"].ToString()) == 1; GameEntry.Log(LogCategory.Resource, "RealSourceUrl=>" + GameEntry.Data.SysDataManager.CurrChannelConfig.RealSourceUrl); GameEntry.Procedure.ChangeState(ProcedureState.CheckVersion); } }
public HttpRoutine() { m_CallBackArgs = new HttpCallBackArgs(); }