From 4b169e9286cc62c2dff0b2cb2bc21e49c2b52596 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期五, 06 二月 2026 17:09:48 +0800
Subject: [PATCH] 475 时机礼包-客户端 接入触发时机,山寨界面,记录在本地
---
Main/System/ClientVersion/VersionUtility.cs | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/Main/System/ClientVersion/VersionUtility.cs b/Main/System/ClientVersion/VersionUtility.cs
index 448259d..4b1a20b 100644
--- a/Main/System/ClientVersion/VersionUtility.cs
+++ b/Main/System/ClientVersion/VersionUtility.cs
@@ -1,5 +1,5 @@
//--------------------------------------------------------
-// [Author]: 绗簩涓栫晫
+// [Author]: 鐜╀釜娓告垙
// [ Date ]: Thursday, March 15, 2018
//--------------------------------------------------------
using UnityEngine;
@@ -15,12 +15,12 @@
public class VersionUtility : Singleton<VersionUtility>
{
- public static readonly string[] VERSION_URL = new string[] {
- "http://gamecenter.secondworld.net.cn:11000/center/appversion_new.php/?"};
+ // public static readonly string[] VERSION_URL = new string[] {
+ // "http://xssgcenter.secondworld.net.cn:11000/center/appversion_new.php/?"};
- public string androidRoot { get { return string.Empty;/*StringUtility.Contact(SDKUtils.Instance.DeviceRootPath, "/", VersionConfig.Get().bundleIdentifier);*/ } }
+ public string androidRoot { get { return string.Empty;/*StringUtility.Concat(SDKUtils.Instance.DeviceRootPath, "/", VersionConfig.Get().bundleIdentifier);*/ } }
- public DownloadTask downloadTask;
+ public DownloadHotTask downloadTask;
private string versionUrl;
public float progress
{
@@ -66,7 +66,7 @@
//tables["game"] = VersionConfig.Get().gameId;
- //var url = StringUtility.Contact(VERSION_URL[urlIndex % 2], HttpRequest.HashtablaToString(tables));
+ //var url = StringUtility.Concat(VERSION_URL[urlIndex % 2], HttpRequest.HashtablaToString(tables));
//urlIndex++;
//versionUrl = url;
//Debug.Log("http鍦板潃:versionUrl " + url);
@@ -143,7 +143,7 @@
return string.Empty;
var remoteURL = GetApkRemoteUrl();
var fileName = Path.GetFileName(remoteURL);
- return StringUtility.Contact(androidRoot, "/", fileName);
+ return StringUtility.Concat(androidRoot, "/", fileName);
}
public string GetApkRemoteUrl()
@@ -199,16 +199,16 @@
var remoteURL = GetApkRemoteUrl();
var apkLocalUrl = GetApkLocalUrl();
- downloadTask = new DownloadTask(remoteURL, apkLocalUrl);
+ downloadTask = new DownloadHotTask(remoteURL, apkLocalUrl);
downloadTask.BeginDownload(OnDownLoadApkCompleted);
}
- private void OnDownLoadApkCompleted(DownloadTask task)
+ private void OnDownLoadApkCompleted(DownloadHotTask task)
{
if (task.IsDone)
{
step = Step.Completed;
- // VersionUpdateWin.Instance.CloseWindow();
+ UIManager.Instance.CloseWindow<VersionUpdateWin>();
// // WindowCenter.Instance.Close<VersionUpdateWin>();
SDKUtils.Instance.InstallAPK(GetApkLocalUrl());
}
--
Gitblit v1.8.0