修改maplist;苹果处理

This commit is contained in:
CaiYanPeng 2022-01-07 23:54:23 +08:00
parent 7431228d2f
commit f070f5a36c
4 changed files with 8 additions and 2 deletions

View File

@ -19,6 +19,8 @@ public class LoginControllerMobile : MonoBehaviour, INativeOnMobileWxLoginResp
void Awake() void Awake()
{ {
transform.Find("Panel/LoginContainer/LoginScrollView/Viewport/Content/FormContainer-Login/Mask/FormContainer/otherContainer/Wechat")
.gameObject.SetActive(App.weChatController.IsWeChatAppInstalled());
loginScrollView = transform.Find("Panel/LoginContainer/LoginScrollView").GetComponent<ScrollRect>(); loginScrollView = transform.Find("Panel/LoginContainer/LoginScrollView").GetComponent<ScrollRect>();
thirdLoginPage = loginScrollView.content.Find("FormContainer-Login/Mask/FormContainer-third"); thirdLoginPage = loginScrollView.content.Find("FormContainer-Login/Mask/FormContainer-third");
//UIManager.AddEvent(loginScrollView.content.Find("FormContainer-Login/Mask/FormContainer/BtnThirdLogin").gameObject, //UIManager.AddEvent(loginScrollView.content.Find("FormContainer-Login/Mask/FormContainer/BtnThirdLogin").gameObject,
@ -93,6 +95,7 @@ public class LoginControllerMobile : MonoBehaviour, INativeOnMobileWxLoginResp
} }
App.WorkoutsUrl = r.data.Value<JObject>("Apk").Value<string>("Url"); App.WorkoutsUrl = r.data.Value<JObject>("Apk").Value<string>("Url");
#elif UNITY_IOS #elif UNITY_IOS
//var sw = r.data.Value<string>("ThirdPartSwitch"); //var sw = r.data.Value<string>("ThirdPartSwitch");
//transform.Find("Panel/LoginContainer/LoginScrollView/Viewport/Content/FormContainer-Login/Mask/FormContainer/BtnThirdLogin") //transform.Find("Panel/LoginContainer/LoginScrollView/Viewport/Content/FormContainer-Login/Mask/FormContainer/BtnThirdLogin")
// .gameObject.SetActive(sw.Equals("on") && App.weChatController.IsWeChatAppInstalled()); // .gameObject.SetActive(sw.Equals("on") && App.weChatController.IsWeChatAppInstalled());

View File

@ -89,10 +89,14 @@ public class WeChatController
/// <returns></returns> /// <returns></returns>
public bool IsWeChatAppInstalled() public bool IsWeChatAppInstalled()
{ {
#if !UNITY_EDITOR
#if UNITY_ANDROID #if UNITY_ANDROID
return mainActivityClass.CallStatic<bool>("IsWeChatInstalled"); return mainActivityClass.CallStatic<bool>("IsWeChatInstalled");
#elif UNITY_IOS #elif UNITY_IOS
return IsWechatInstalled_iOS(); return IsWechatInstalled_iOS();
#else
return false;
#endif
#else #else
return false; return false;
#endif #endif

View File

@ -94,7 +94,7 @@ public class MapListController : PFUIPanel
UIManager.AddEvent(transform.Find("Upload").gameObject, EventTriggerType.PointerClick, b => UIManager.AddEvent(transform.Find("Upload").gameObject, EventTriggerType.PointerClick, b =>
{ {
UIManager.ShowConfirm(App.GetLocalLanguage()=="zh"?"上传线路":"Upload Route", UIManager.ShowConfirm(App.GetLocalLanguage()=="zh"?"上传线路":"Upload Route",
App.GetLocalLanguage() == "zh"? @"复制www.powerfun.com至电脑端登录后点击""上传活动""按钮上传你的.fit或者.gpx文件": @"Copy www.powerfun.com to the computer and log in and click the ""Upload Activity"" button to upload your .fit or .gpx file", () => App.GetLocalLanguage() == "zh"? @"复制www.powerfun.com至电脑端登录后点击""上传活动""按钮上传你的.fit或者.gpx文件" : @"Copy www.powerfun.com to the computer, then log in and click the button ""Upload an Activity"" to upload your .fit or .gpx file", () =>
{ {
UnityEngine.GUIUtility.systemCopyBuffer = "http://www.powerfun.com"; UnityEngine.GUIUtility.systemCopyBuffer = "http://www.powerfun.com";
UIManager.CloseConfirm(); UIManager.CloseConfirm();

View File

@ -38,7 +38,6 @@ GraphicsSettings:
- {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16003, guid: 0000000000000000f000000000000000, type: 0}
m_PreloadedShaders: [] m_PreloadedShaders: []
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
type: 0} type: 0}