예제 #1
0
        /// <summary>
        /// 获取版本更新
        /// </summary>
        /// <returns>版本更新信息</returns>
        /// <remarks> 2013-7-5 杨浩 创建 </remarks>
        /// <remarks>2013-08-20 周唐炬 实现</remarks>
        public Result <Model.B2CApp.Version> GetVersion(AppEnum.AppType type)
        {
            var result = new Result <Model.B2CApp.Version>()
            {
                StatusCode = -1
            };
            var data = VersionBo.Instance.GetApVersion(type);

            if (null != data)
            {
                var model = new Model.B2CApp.Version()
                {
                    VersionNumber = data.VersionNumber,
                    VersionLink   = data.VersionLink,
                    UpgradeInfo   = data.UpgradeInfo
                };
                result.Data       = model;
                result.Status     = true;
                result.StatusCode = 0;
            }
            else
            {
                result.Message = "暂无最新更新!";
            }
            return(result);
        }
예제 #2
0
 /// <summary>
 /// 获取最新APP版本信息
 /// </summary>
 /// <param name="type">App系统类型</param>
 /// <returns>最新APP版本信息</returns>
 /// <remarks>2013-08-20 周唐炬 创建</remarks>
 public abstract ApVersion GetApVersion(AppEnum.AppType type);
예제 #3
0
 /// <summary>
 /// 获取最新APP版本信息
 /// </summary>
 /// <param name="type">App系统类型</param>
 /// <returns>最新APP版本信息</returns>
 /// <remarks>2013-08-20 周唐炬 创建</remarks>
 public ApVersion GetApVersion(AppEnum.AppType type)
 {
     return(IApVersionDao.Instance.GetApVersion(type));
 }