From 62ee623e0e2c6143611f8ecc552238b224bb5d24 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期四, 27 九月 2018 10:52:31 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/ClientVersion/VersionUtility.cs | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/System/ClientVersion/VersionUtility.cs b/System/ClientVersion/VersionUtility.cs
index c1b8db6..ba10111 100644
--- a/System/ClientVersion/VersionUtility.cs
+++ b/System/ClientVersion/VersionUtility.cs
@@ -10,6 +10,7 @@
using LitJson;
using System.IO;
using Snxxz.UI;
+using System.Text;
public class VersionUtility : Singleton<VersionUtility>
{
@@ -234,15 +235,19 @@
step = Step.None;
var tables = new Dictionary<string, string>();
tables["uid"] = ModelCenter.Instance.GetModel<LoginModel>().sdkLoginResult.account;
- var url = StringUtility.Contact("https://api.maoergame.com/update/download/url?", HttpRequest.HashtablaToString(tables));
- Debug.Log("鐚�冲己鏇磚rl锛�" + url);
- HttpRequest.Instance.RequestHttpPost(url, string.Empty, HttpRequest.defaultHttpContentType, 1, OnMaoErVersionCheckResult);
+ var url = "https://api.maoergame.com/update/download/url";
+ Debug.LogFormat("鐚�冲己鏇磚rl锛歿0} uid锛歿1} ", url, ModelCenter.Instance.GetModel<LoginModel>().sdkLoginResult.account);
+ HttpRequest.Instance.RequestHttpPost(url, tables, HttpRequest.defaultHttpContentType, 1, OnMaoErVersionCheckResult);
}
}
private void OnMaoErVersionCheckResult(bool ok, string result)
{
- Debug.Log("鐚�冲己鏇� result锛�" + result);
+ UTF8Encoding utf8 = new UTF8Encoding();
+ Byte[] encodedBytes = utf8.GetBytes(result);
+ String decodedString = utf8.GetString(encodedBytes);
+
+ Debug.LogFormat("鐚�冲己鏇磋姹傝繑鍥炵粨鏋� result锛歿0}", decodedString);
if (ok)
{
try
--
Gitblit v1.8.0