public int OpenPortal(int _type) { try { LogManager.SystemLog.Debug(string.Format("Start UC_SDK_OpenPortal")); int iRet = UCInterface.UC_SDK_OpenPortal(_type); if (iRet != 0) { LogManager.SystemLog.Error(string.Format("Start UC_SDK_OpenPortal error {0}", iRet)); return(iRet); } LogManager.SystemLog.Debug(string.Format("End UC_SDK_OpenPortal")); return(iRet); } catch (Exception ex) { LogManager.SystemLog.Debug(ex.ToString()); return(-1); } }