From 3b0ffd78e764285a0162c30cdb1e363966f8968f Mon Sep 17 00:00:00 2001 From: CaiYanPeng Date: Thu, 24 Feb 2022 08:58:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E4=BA=AB=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Resources/UI/language.json | 8 ++++++-- Assets/Scripts/UI/Prefab/Activity/ActivityController.cs | 7 ++++--- ProjectSettings/ProjectSettings.asset | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Assets/Resources/UI/language.json b/Assets/Resources/UI/language.json index b9287025..af90099d 100644 --- a/Assets/Resources/UI/language.json +++ b/Assets/Resources/UI/language.json @@ -317,7 +317,9 @@ "NO RIDERS": "暂无用户", "Current Version:": "当前版本:", "Latest Version:": "最新版本:", - "Confirm participation": "确认参加活动" + "Confirm participation": "确认参加活动", + "Light up China Share": "快来和我一起点亮中国吧!", + "Copy Success": "复制成功" }, "en": { "HOT ROUTES": "HOT ROUTES", @@ -629,6 +631,8 @@ "NO RIDERS": "NO RIDERS", "Current Version:": "Current Version:", "Latest Version:": "Latest Version:", - "Confirm participation": "Confirm participation" + "Confirm participation": "Confirm participation", + "Light up China Share": "Come and light up China with me!", + "Copy Success": "Copy successfully" } } diff --git a/Assets/Scripts/UI/Prefab/Activity/ActivityController.cs b/Assets/Scripts/UI/Prefab/Activity/ActivityController.cs index 4435e940..2875cbef 100644 --- a/Assets/Scripts/UI/Prefab/Activity/ActivityController.cs +++ b/Assets/Scripts/UI/Prefab/Activity/ActivityController.cs @@ -76,6 +76,7 @@ public class ActivityController : PFUIPanel { if (action == null) { + //webView.UserAgent = "tes "+ App.GetLocalLanguage(); webView.LoadURL(url, true); } else @@ -130,18 +131,18 @@ public class ActivityController : PFUIPanel { if (App.weChatController.IsWeChatAppInstalled()) { - App.weChatController.ShareWebpageToWX(type, url, "点亮中国活动", "by " + App.CurrentUser.Nickname, null); + App.weChatController.ShareWebpageToWX(type, url, App.GetLocalString("Light up China Share"), "by " + App.CurrentUser.Nickname, null); } } else if (type == 2) { UnityEngine.GUIUtility.systemCopyBuffer = url; - RunJavaScript("window.postMessage(\"webview;复制成功\")"); + RunJavaScript($"window.postMessage(\"webview;{App.GetLocalString("Copy Success")}\")"); } else { Facebook.Unity.FB.ShareLink(contentURL: new Uri(url), - contentTitle: "点亮中国活动", + contentTitle: App.GetLocalString("Light up China Share"), contentDescription: "By " + App.CurrentUser.Nickname, photoURL: new Uri(App.CurrentUser.WxHeadImg)); } diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index 62ee12c4..682bf7b9 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -179,7 +179,7 @@ PlayerSettings: applicationIdentifier: Android: com.ZhiXingPai.PowerFunUnity buildNumber: - iPhone: 2.1.2.3 + iPhone: 2.1.3.0 AndroidBundleVersionCode: 16 AndroidMinSdkVersion: 24 AndroidTargetSdkVersion: 30