public void SetCondition_WemeLoginResult(body_LC_WEMELOGIN_RESULT result) { SetReviewCondition (eREVIEW_CONDITION.PROMOTION, result.bIOS_Promotion); SetReviewCondition (eREVIEW_CONDITION.MARKETING_BANNER, result.bIOS_Marketing_Banner); SetReviewCondition (eREVIEW_CONDITION.PLATFORM_VIEW, result.bIOS_Platform); SetReviewCondition (eREVIEW_CONDITION.FRIEND_REWARD, result.bIOS_Friend_Reward); SetReviewCondition (eREVIEW_CONDITION.RECOMMEND_REWARD, result.bIOS_Recommend_Reward); SetReviewCondition (eREVIEW_CONDITION.REVIEW_REWARD, result.bIOS_Review_Reward); SetReviewCondition (eREVIEW_CONDITION.COUPON, result.bIOS_Coupon); SetReviewCondition (eREVIEW_CONDITION.SOCIAL_REWARD, result.bIOS_Social_Reward); }
private void WemeLoginResult( byte[] _packet) { body_LC_WEMELOGIN_RESULT result = new body_LC_WEMELOGIN_RESULT(); result.PacketBytesToClass( _packet); AsReviewConditionManager.Instance.SetCondition_WemeLoginResult (result); switch( result.eResult) { case eRESULTCODE.eRESULT_WEMEALOGIN_USERINFOREQ: case eRESULTCODE.eRESULT_SUCC: break; case eRESULTCODE.eRESULT_SUCC_REENTRANCE: // AsNotify.Instance.MessageBox( AsTableManager.Instance.GetTbl_String(126), AsTableManager.Instance.GetTbl_String(4093)); break; case eRESULTCODE.eRESULT_FAIL_WITHDRAWAL_ONEDAY: { AsLoadingIndigator.Instance.HideIndigator(); GameObject go = GameObject.Find( "LoginFramework"); if( null != go) { AsLoginScene loginScene = go.GetComponentInChildren<AsLoginScene>(); if( null != loginScene) { AsNotify.Instance.MessageBox( AsTableManager.Instance.GetTbl_String(126), AsTableManager.Instance.GetTbl_String(1584), loginScene, "InitButtonState", AsNotify.MSG_BOX_TYPE.MBT_OK, AsNotify.MSG_BOX_ICON.MBI_NOTICE); } } } return; case eRESULTCODE.eRESULT_FAIL_BAN_LOGIN: { AsLoadingIndigator.Instance.HideIndigator(); GameObject go = GameObject.Find( "LoginFramework"); if( null != go) { AsLoginScene loginScene = go.GetComponentInChildren<AsLoginScene>(); if( null != loginScene) { AsNotify.Instance.MessageBox( AsTableManager.Instance.GetTbl_String(126), AsTableManager.Instance.GetTbl_String(1653), loginScene, "InitButtonState", AsNotify.MSG_BOX_TYPE.MBT_OK, AsNotify.MSG_BOX_ICON.MBI_NOTICE); } } } return; case eRESULTCODE.eRESULT_FAIL_GM_EDIT: { AsLoadingIndigator.Instance.HideIndigator(); GameObject go = GameObject.Find( "LoginFramework"); if( null != go) { AsLoginScene loginScene = go.GetComponentInChildren<AsLoginScene>(); if( null != loginScene) { AsNotify.Instance.MessageBox( AsTableManager.Instance.GetTbl_String(126), AsTableManager.Instance.GetTbl_String(1652), loginScene, "InitButtonState", AsNotify.MSG_BOX_TYPE.MBT_OK, AsNotify.MSG_BOX_ICON.MBI_NOTICE); } } } return; case eRESULTCODE.eRESULT_FAIL_ACCOUNT_DELETED: { AsLoadingIndigator.Instance.HideIndigator(); // confirm msg box , "are you cancel account delete?" AsMessageBox accountDeleteCancelDlg = AsNotify.Instance.MessageBox( AsTableManager.Instance.GetTbl_String(126), AsTableManager.Instance.GetTbl_String(4093), this, "CancelAccountDeleteOK", "CancelAccountDeleteKeep", AsNotify.MSG_BOX_TYPE.MBT_OKCANCEL, AsNotify.MSG_BOX_ICON.MBI_QUESTION); } return; default: Debug.LogWarning( "WemeLoginResult : " + result.eResult); return; } if(WemeSdkManager.Instance.IsWithdrawLogin) { Debug.Log( "Withdraw"); body_CL_ACCOUNT_DELETE delete = new body_CL_ACCOUNT_DELETE(); byte[] packet = delete.ClassToPacketBytes(); AsNetworkMessageHandler.Instance.Send( packet); WemeSdkManager.Instance.IsWithdrawLogin = false; AsLoadingIndigator.Instance.HideIndigator();//#19616. return; } Debug.Log( "WemeLoginResult LoginUserUniqueKey:" + result.nUserUniqKey); AsUserInfo.Instance.LoginUserUniqueKey = result.nUserUniqKey; AsUserInfo.Instance.WemeAuthToken = AsUtil.GetRealString( System.Text.UTF8Encoding.UTF8.GetString( result.strAccessToken)); AsUserInfo.Instance.isWemeCertified = true; // AsUserInfo.Instance.isGuest = result.bIsGuest; WemeSdkManager.Instance.IsConfirmGuest = result.bIsGuest; //2014.05.16 Debug.Log( "result.IsConfirmGuest : " + result.bIsGuest); Debug.Log( "result.IsConfirmGuest : " + result.bIsGuest); Debug.Log( "Request server list"); AS_CL_SERVERLIST serverList = new AS_CL_SERVERLIST(); byte[] data = serverList.ClassToPacketBytes(); AsNetworkMessageHandler.Instance.Send( data); AsCommonSender.SetSocketState( SOCKET_STATE.SS_LOGIN); AsLoadingIndigator.Instance.HideIndigator(); }