private void OnLogoutResp(SDKStatusCode code, string data) { if (UIManagerControl.Instance.IsOpen("LoginUI")) { LoginPanel.Instance.ShowLoginSDK(true); } else if (ClientApp.Instance != null) { ClientApp.Instance.ReInit(); } }
public void OnPayToRechargeDiamondResp(SDKStatusCode code, string data) { Debug.Log(string.Concat(new object[] { "OnPayToRechargeDiamondResp : code = ", code, ", data = ", data })); WaitUI.CloseUI(0u); if (SDKManager.Instance.IsAndroidYSDK()) { this.OnPayToRechargeDiamondResp_YSDK(code, data); } else if (code != SDKStatusCode.SUCCESS) { } }
private void OnPayToRechargeDiamondResp_YSDK(SDKStatusCode code, string data) { if (code == (SDKStatusCode)1) { DialogBoxUIViewModel.Instance.ShowAsConfirm("提示", "服务器没有响应,请稍后再试", null, "确定", "button_orange_1", null); } else if (code == (SDKStatusCode)2) { this.YSDK_CheckBalanceSuccess(data); } else if (code == (SDKStatusCode)3) { Debug.Log("YSDK: 记录订单"); JsonData jsonData = JsonMapper.ToObject(data); string value = (string)jsonData["orderId"]; PlayerPrefsExt.SetStringPrefs("YSDK_ORDER_RECORD", value); } else if (code == (SDKStatusCode)4) { Debug.Log("YSDK: 移除订单记录"); PlayerPrefsExt.SetStringPrefs("YSDK_ORDER_RECORD", string.Empty); } }
public void OnApplicationQuitResp(SDKStatusCode code, string data) { ClientApp.QuitApp(); }