少年修仙传客户端代码仓库
client_Wu Xijin
2019-02-12 1aeb815836d84ecfddf761a47862efebbba0ad03
Core/GameEngine/Model/Config/ApkUpdateUrlConfig.cs
@@ -1,6 +1,6 @@
//--------------------------------------------------------
//    [Author]:         第二世界
//    [  Date ]:         Wednesday, November 21, 2018
//    [  Date ]:         Tuesday, February 12, 2019
//--------------------------------------------------------
using UnityEngine;
@@ -11,23 +11,25 @@
    
   public partial class ApkUpdateUrlConfig : ConfigBase {
      public string appid { get ; private set; }
      public int branch { get ; private set ; }
      public string url { get ; private set; }
      public string appid;
      public int branch;
      public string url;
      public override string getKey()
        {
            return appid.ToString();
        }
      public override void Parse() {
      public override void Parse(string content) {
         try
            {
                appid = rawContents[0].Trim();
                var contents = content.Split('\t');
                appid = contents[0];
         
            branch=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
            int.TryParse(contents[1],out branch);
         
            url = rawContents[2].Trim();
            url = contents[2];
            }
            catch (Exception ex)
            {