分享文案

This commit is contained in:
CaiYanPeng 2022-02-24 08:58:03 +08:00
parent 1e350fbb4d
commit 3b0ffd78e7
3 changed files with 11 additions and 6 deletions

View File

@ -317,7 +317,9 @@
"NO RIDERS": "暂无用户", "NO RIDERS": "暂无用户",
"Current Version:": "当前版本:", "Current Version:": "当前版本:",
"Latest Version:": "最新版本:", "Latest Version:": "最新版本:",
"Confirm participation": "确认参加活动" "Confirm participation": "确认参加活动",
"Light up China Share": "快来和我一起点亮中国吧!",
"Copy Success": "复制成功"
}, },
"en": { "en": {
"HOT ROUTES": "HOT ROUTES", "HOT ROUTES": "HOT ROUTES",
@ -629,6 +631,8 @@
"NO RIDERS": "NO RIDERS", "NO RIDERS": "NO RIDERS",
"Current Version:": "Current Version:", "Current Version:": "Current Version:",
"Latest Version:": "Latest 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"
} }
} }

View File

@ -76,6 +76,7 @@ public class ActivityController : PFUIPanel
{ {
if (action == null) if (action == null)
{ {
//webView.UserAgent = "tes "+ App.GetLocalLanguage();
webView.LoadURL(url, true); webView.LoadURL(url, true);
} }
else else
@ -130,18 +131,18 @@ public class ActivityController : PFUIPanel
{ {
if (App.weChatController.IsWeChatAppInstalled()) 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) else if (type == 2)
{ {
UnityEngine.GUIUtility.systemCopyBuffer = url; UnityEngine.GUIUtility.systemCopyBuffer = url;
RunJavaScript("window.postMessage(\"webview;复制成功\")"); RunJavaScript($"window.postMessage(\"webview;{App.GetLocalString("Copy Success")}\")");
} }
else else
{ {
Facebook.Unity.FB.ShareLink(contentURL: new Uri(url), Facebook.Unity.FB.ShareLink(contentURL: new Uri(url),
contentTitle: "点亮中国活动", contentTitle: App.GetLocalString("Light up China Share"),
contentDescription: "By " + App.CurrentUser.Nickname, contentDescription: "By " + App.CurrentUser.Nickname,
photoURL: new Uri(App.CurrentUser.WxHeadImg)); photoURL: new Uri(App.CurrentUser.WxHeadImg));
} }

View File

@ -179,7 +179,7 @@ PlayerSettings:
applicationIdentifier: applicationIdentifier:
Android: com.ZhiXingPai.PowerFunUnity Android: com.ZhiXingPai.PowerFunUnity
buildNumber: buildNumber:
iPhone: 2.1.2.3 iPhone: 2.1.3.0
AndroidBundleVersionCode: 16 AndroidBundleVersionCode: 16
AndroidMinSdkVersion: 24 AndroidMinSdkVersion: 24
AndroidTargetSdkVersion: 30 AndroidTargetSdkVersion: 30