分享文案
This commit is contained in:
1 parent
1e350fbb4d
commit
3b0ffd78e7
3 files changed
+11
-6
No files matched your search
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user