Exemplo n.º 1
0
    void OnAppVersionUpdate(JsonData json)
    {
        ThirdPartyPlatform.isNdCheckintVer = false;

        int code = (int)json[SDKConstants.KEY_ERROR_CODE];

        Debug.Log("NdSDKAgent: OnAppVersionUpdate/code " + code);
        switch (code)
        {
        case NdErrorCode.UPDATESTATUS_NONE:
            // Log.e("91","没有更新");
            ThirdPartyPlatform.Login(true);
            break;

        case NdErrorCode.UPDATESTATUS_UNMOUNTED_SDCARD:
            // Log.e("91","没有SD卡");
            break;

        case NdErrorCode.UPDATESTATUS_CANCEL_UPDATE:
            // Log.e("91","用户取消普通更新");
            Globals.Instance.MGUIManager.CreateGUIDialog(delegate(GUIDialog gui)
            {
                gui.SetTextAnchor(ETextAnchor.MiddleLeft, false);
                gui.SetDialogType(EDialogType.ND_NORMAL_UPDATE);
            }, EDialogStyle.DialogOkCancel, delegate()
            {
                ThirdPartyPlatform.Login(true);
            });
            break;

        case NdErrorCode.UPDATESTATUS_CHECK_FAILURE:
            // Log.e("91","新版本检测失败");
            break;

        case NdErrorCode.UPDATESTATUS_FORCES_LOADING:
            // Log.e("91","强制更新正在下载");
            break;

        case NdErrorCode.UPDATESTATUS_RECOMMEND_LOADING:
            // Log.e("91","普通更新正在下载");
            break;

        default:
            // Log.e("91","检查更新失败DEFAULT");
            break;
        }
    }
Exemplo n.º 2
0
 public static void OnInitSDK(bool isSuccess)
 {
     Debug.Log("ThirdPartyPlatform::OnInitSDK!!!!!!");
     //if (GameDefines.OutputVerDefs == OutputVersionDefs.Nd91iPhone
     //	|| GameDefines.OutputVerDefs == OutputVersionDefs.Nd91Android)
     //{
     //ThirdPartyPlatform.NdCheckAppVersion();
     //}
     //else
     if (GameDefines.OutputVerDefs == OutputVersionDefs.AppStore)
     {
         Globals.Instance.MGUIManager.CreateWindow <GUIPreLogin>(delegate(GUIPreLogin gui)
         {
             gui.enterAccountGUI();
         });
     }
     {
         ThirdPartyPlatform.Login(true);
     }
 }