Esempio n. 1
0
 public static void IAPFailed(IAPErrorCode iErrorCode, Int32 iErrorDetailCode, string iErrorDetailInfo)
 {
     UtilsLog.Info("IAPMsgSwitch", "[IAPFailed] ErrorCode::{0} ErrorDetailCode::{1} ErrorDetail::{2}",
                   iErrorCode, iErrorDetailCode, iErrorDetailInfo);
     if ((null != IAPInstance) && (null != IAPInstance.OnFailed))
     {
         IAPInstance.OnFailed(iErrorCode, iErrorDetailCode, iErrorDetailInfo);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// 交易失败.
        /// </summary>
        /// <param name="iErrorCode">Error Code.</param>
        /// <param name="iErrorDetailCode">错误详细Code.</param>
        /// <param name="iErrorDetailInfo">错误详细.</param>
        private void OnIAPFailed(IAPErrorCode iErrorCode, int iErrorDetailCode, string iErrorDetailInfo)
        {
            this.Error("OnIAPFailed():ErrorCode:{0} ErrorDetailCode:{1} ErrorDetail:{2}",
                       iErrorCode, iErrorDetailCode, iErrorDetailInfo);

            this.ErrorCode       = iErrorCode;
            this.ErrorDetailCode = iErrorDetailCode;
            this.ErrorDetail     = iErrorDetailInfo;

            this.SwitchState(IAPState.Failed);
        }
Esempio n. 3
0
 /// <summary>
 /// 根据ErrorCode取得MessageID.
 /// </summary>
 /// <returns>MessageID.</returns>
 /// <param name="iErrorCode">ErrorCode.</param>
 protected abstract string GetMessageIDByErrCode(IAPErrorCode iErrorCode);