Esempio n. 1
0
        public int TelCodeGet(int czoneID, int croleID, string tel)
        {
            int result = (int)ESpreadState.Fail;

            try
            {
                ISpreadService kuaFuService = GetKuaFuService();
                if (null != kuaFuService)
                {
                    try
                    {
                        result = kuaFuService.TelCodeGet(_ClientInfo.ServerId, czoneID, croleID, tel);
                    }
                    catch (System.Exception ex)
                    {
                        ResetKuaFuService();
                    }
                }
            }
            catch (System.Exception ex)
            {
                LogManager.WriteExceptionUseCache(ex.ToString());
            }

            return(result);
        }
Esempio n. 2
0
        public int TelCodeGet(int czoneID, int croleID, string tel)
        {
            int result = -1;

            try
            {
                ISpreadService kuaFuService = this.GetKuaFuService(false);
                if (null != kuaFuService)
                {
                    try
                    {
                        result = kuaFuService.TelCodeGet(this._ClientInfo.ServerId, czoneID, croleID, tel);
                    }
                    catch (Exception ex)
                    {
                        this.ResetKuaFuService();
                    }
                }
            }
            catch (Exception ex)
            {
                LogManager.WriteExceptionUseCache(ex.ToString());
            }
            return(result);
        }