FB登录功能暂存;苹果有问题
This commit is contained in:
1 parent
6423007638
commit
769b75e2e2
7 files changed
+84
-12
No files matched your search
@@ -154,9 +154,19 @@ public class LoginControllerMobile : MonoBehaviour, INativeOnMobileWxLoginResp
|
||||
/// <param name="res"></param>
|
||||
private void onFaceBookResp(ILoginResult res)
|
||||
{
|
||||
Debug.Log(res.ToString());
|
||||
if (string.IsNullOrEmpty(res.Error))
|
||||
{
|
||||
Debug.Log("用戶Id" + res.ResultDictionary["user_id"]);
|
||||
if (res.Cancelled)
|
||||
{
|
||||
Utils.showToast(null, App.GetLocalString("User deauthorisation"));
|
||||
}
|
||||
else
|
||||
{
|
||||
GetComponent<LoginController>()
|
||||
.OnFacebookLoginCheck(res.ResultDictionary["user_id"].ToString(), res.ResultDictionary["access_token"].ToString());
|
||||
Debug.Log("用戶Id" + res.ResultDictionary["user_id"]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user