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