| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Wednesday, November 21, 2018 |
| | | // [ Date ]: Tuesday, February 12, 2019 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | |
| | | |
| | | 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) |
| | | { |