Пример #1
0
 private void OnLogoutResp(SDKStatusCode code, string data)
 {
     if (UIManagerControl.Instance.IsOpen("LoginUI"))
     {
         LoginPanel.Instance.ShowLoginSDK(true);
     }
     else if (ClientApp.Instance != null)
     {
         ClientApp.Instance.ReInit();
     }
 }
Пример #2
0
 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)
     {
     }
 }
Пример #3
0
 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);
     }
 }
Пример #4
0
 public void OnApplicationQuitResp(SDKStatusCode code, string data)
 {
     ClientApp.QuitApp();
 }