修改maplist;苹果处理

This commit is contained in:
Caiyanpeng committed 2022-01-10 10:28:03 +08:00
1 parent 7431228d2f
commit f070f5a36c
4 files changed
+8 -2

No files matched your search

@@ -19,6 +19,8 @@ public class LoginControllerMobile : MonoBehaviour, INativeOnMobileWxLoginResp
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>();
thirdLoginPage = loginScrollView.content.Find("FormContainer-Login/Mask/FormContainer-third");
//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");
#elif UNITY_IOS
//var sw = r.data.Value<string>("ThirdPartSwitch");
//transform.Find("Panel/LoginContainer/LoginScrollView/Viewport/Content/FormContainer-Login/Mask/FormContainer/BtnThirdLogin")
// .gameObject.SetActive(sw.Equals("on") && App.weChatController.IsWeChatAppInstalled());
@@ -89,10 +89,14 @@ public class WeChatController
/// <returns></returns>
public bool IsWeChatAppInstalled()
{
#if !UNITY_EDITOR
#if UNITY_ANDROID
return mainActivityClass.CallStatic<bool>("IsWeChatInstalled");
#elif UNITY_IOS
return IsWechatInstalled_iOS();
#else
return false;
#endif
#else
return false;
#endif