【新增】增加表【CoreCmsAppUpdateLog】版本更新表,用于发布版本更新。

【新增】增加安卓app版本在线更新功能。
【优化】优化app端头部导航按钮错位的问题。
This commit is contained in:
大灰灰
2022-07-20 01:27:47 +08:00
parent b5c5e97583
commit 30bd8ef291
26 changed files with 2268 additions and 62 deletions

View File

@@ -48,19 +48,20 @@ namespace CoreCms.Net.Web.WebApi.Controllers
private readonly ICoreCmsSettingServices _coreCmsSettingServices;
private readonly IToolsServices _toolsServices;
private readonly ICoreCmsAppUpdateLogServices _appUpdateLogServices;
/// <summary>
/// 构造函数
/// </summary>
public CommonController(ICoreCmsSettingServices settingServices
, ICoreCmsAreaServices areaServices
, IWebHostEnvironment webHostEnvironment, ICoreCmsServiceDescriptionServices serviceDescriptionServices, ICoreCmsSettingServices coreCmsSettingServices, IToolsServices toolsServices)
, IWebHostEnvironment webHostEnvironment, ICoreCmsServiceDescriptionServices serviceDescriptionServices, ICoreCmsSettingServices coreCmsSettingServices, IToolsServices toolsServices, ICoreCmsAppUpdateLogServices appUpdateLogServices)
{
_webHostEnvironment = webHostEnvironment;
_serviceDescriptionServices = serviceDescriptionServices;
_coreCmsSettingServices = coreCmsSettingServices;
_toolsServices = toolsServices;
_appUpdateLogServices = appUpdateLogServices;
_settingServices = settingServices;
_areaServices = areaServices;
@@ -166,6 +167,10 @@ namespace CoreCms.Net.Web.WebApi.Controllers
var qqMapKey = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.QqMapKey); //腾讯地图key
var checkInIsOpen = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.CheckInIsOpen).ObjectToInt(2); //订单取消时间
var model = new
{
shopLogo,
@@ -216,7 +221,8 @@ namespace CoreCms.Net.Web.WebApi.Controllers
agentNotes,
agentAgreement,
agentStore,
qqMapKey
qqMapKey,
checkInIsOpen
};
jm.data = model;
return jm;
@@ -267,6 +273,28 @@ namespace CoreCms.Net.Web.WebApi.Controllers
#endregion
#region
/// <summary>
/// 获取商城关键词说明列表
/// </summary>
/// <returns></returns>
[HttpPost]
public async Task<WebApiCallBack> GetAppVersions()
{
var jm = new WebApiCallBack();
var model = await _appUpdateLogServices.QueryByClauseAsync(p => p.isUpdate == true, p => p.id, OrderByType.Desc);
jm.status = true;
jm.data = model;
return jm;
}
#endregion
//验证接口====================================================================================================
#region ====================================================