diff --git a/CoreCms.Net.Task/HangfireDispose.cs b/CoreCms.Net.Task/HangfireDispose.cs index 1f06d6a1..042d6bb9 100644 --- a/CoreCms.Net.Task/HangfireDispose.cs +++ b/CoreCms.Net.Task/HangfireDispose.cs @@ -40,29 +40,30 @@ namespace CoreCms.Net.Task //这里呢就是需要触发的方法 "0/10 * * * * ? " 可以自行搜索cron表达式 代表循环的规律很简单 //CancelOrderJob代表你要触发的类 Execute代表你要触发的方法 + //自动取消订单任务 - RecurringJob.AddOrUpdate(s => s.Execute(), "0 0/5 * * * ? ", TimeZoneInfo.Utc); // 每5分钟取消一次订单 + RecurringJob.AddOrUpdate(s => s.Execute(), "0 0/5 * * * ? ", TimeZoneInfo.Local); // 每5分钟取消一次订单 //自动完成订单任务 - RecurringJob.AddOrUpdate(s => s.Execute(), "0 0 0/1 * * ? ", TimeZoneInfo.Utc); // 每小时自动完成订单 + RecurringJob.AddOrUpdate(s => s.Execute(), "0 0 0/1 * * ? ", TimeZoneInfo.Local); // 每小时自动完成订单 //自动评价订单任务 - RecurringJob.AddOrUpdate(s => s.Execute(), "0 0 0/1 * * ? ", TimeZoneInfo.Utc); // 每小时自动完成订单 + RecurringJob.AddOrUpdate(s => s.Execute(), "0 0 0/1 * * ? ", TimeZoneInfo.Local); // 每小时自动完成订单 //自动签收订单任务 - RecurringJob.AddOrUpdate(s => s.Execute(), "0 0 0/1 * * ? ", TimeZoneInfo.Utc); // 每小时自动完成订单 + RecurringJob.AddOrUpdate(s => s.Execute(), "0 0 0/1 * * ? ", TimeZoneInfo.Local); // 每小时自动完成订单 //催付款订单 - RecurringJob.AddOrUpdate(s => s.Execute(), "0 0/5 * * * ? ", TimeZoneInfo.Utc); // 每5分钟催付款订单 + RecurringJob.AddOrUpdate(s => s.Execute(), "0 0/5 * * * ? ", TimeZoneInfo.Local); // 每5分钟催付款订单 //拼团自动取消到期团(每分钟执行一次) - RecurringJob.AddOrUpdate(s => s.Execute(), "0 0/2 * * * ? ", TimeZoneInfo.Utc); // 每分钟取消一次订单 + RecurringJob.AddOrUpdate(s => s.Execute(), "0 0/2 * * * ? ", TimeZoneInfo.Local); // 每分钟取消一次订单 //每天凌晨5点定期清理7天前操作日志 - RecurringJob.AddOrUpdate(s => s.Execute(), "0 0 5 * * ? ", TimeZoneInfo.Utc); // 每天5点固定时间清理一次 + RecurringJob.AddOrUpdate(s => s.Execute(), "0 0 5 * * ? ", TimeZoneInfo.Local); // 每天5点固定时间清理一次 //定时刷新获取微信AccessToken - RecurringJob.AddOrUpdate(s => s.Execute(), "0 0/4 * * * ? ", TimeZoneInfo.Utc); // 每2分钟刷新获取微信AccessToken + RecurringJob.AddOrUpdate(s => s.Execute(), "0 0/4 * * * ? ", TimeZoneInfo.Local); // 每2分钟刷新获取微信AccessToken } diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/activity/groupBuying/groupBuyingDetails/groupBuyingDetails.vue b/CoreCms.Net.Uni-App/CoreShop/pages/activity/groupBuying/groupBuyingDetails/groupBuyingDetails.vue index 215b2bfd..43a3884c 100644 --- a/CoreCms.Net.Uni-App/CoreShop/pages/activity/groupBuying/groupBuyingDetails/groupBuyingDetails.vue +++ b/CoreCms.Net.Uni-App/CoreShop/pages/activity/groupBuying/groupBuyingDetails/groupBuyingDetails.vue @@ -126,11 +126,9 @@ - - - {{ item.name || ''}}: - {{ item.value || ''}} - + + {{ item.name || ''}}: + {{ item.value || ''}} diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/activity/pinTuan/pinTuanDetails/pinTuanDetails.vue b/CoreCms.Net.Uni-App/CoreShop/pages/activity/pinTuan/pinTuanDetails/pinTuanDetails.vue index a7a6d1d8..e055aace 100644 --- a/CoreCms.Net.Uni-App/CoreShop/pages/activity/pinTuan/pinTuanDetails/pinTuanDetails.vue +++ b/CoreCms.Net.Uni-App/CoreShop/pages/activity/pinTuan/pinTuanDetails/pinTuanDetails.vue @@ -206,11 +206,9 @@ - - - {{ item.name || ''}}: - {{ item.value || ''}} - + + {{ item.name || ''}}: + {{ item.value || ''}} diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/activity/seckill/seckillDetails/seckillDetails.vue b/CoreCms.Net.Uni-App/CoreShop/pages/activity/seckill/seckillDetails/seckillDetails.vue index 02261f6e..f88000ec 100644 --- a/CoreCms.Net.Uni-App/CoreShop/pages/activity/seckill/seckillDetails/seckillDetails.vue +++ b/CoreCms.Net.Uni-App/CoreShop/pages/activity/seckill/seckillDetails/seckillDetails.vue @@ -129,11 +129,9 @@ - - - {{ item.name || ''}}: - {{ item.value || ''}} - + + {{ item.name || ''}}: + {{ item.value || ''}} diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/goods/goodDetails/goodDetails.vue b/CoreCms.Net.Uni-App/CoreShop/pages/goods/goodDetails/goodDetails.vue index 6f2a5ca4..d5580ffa 100644 --- a/CoreCms.Net.Uni-App/CoreShop/pages/goods/goodDetails/goodDetails.vue +++ b/CoreCms.Net.Uni-App/CoreShop/pages/goods/goodDetails/goodDetails.vue @@ -199,11 +199,9 @@ - - - {{ item.name || ''}}: - {{ item.value || ''}} - + + {{ item.name || ''}}: + {{ item.value || ''}} diff --git a/CoreCms.Net.Web.Admin/Controllers/Article/CoreCmsArticleTypeController.cs b/CoreCms.Net.Web.Admin/Controllers/Article/CoreCmsArticleTypeController.cs index 1bee497b..1922bd3f 100644 --- a/CoreCms.Net.Web.Admin/Controllers/Article/CoreCmsArticleTypeController.cs +++ b/CoreCms.Net.Web.Admin/Controllers/Article/CoreCmsArticleTypeController.cs @@ -73,7 +73,8 @@ namespace CoreCms.Net.Web.Admin.Controllers var jm = new AdminUiCallBack(); //获取数据 - var list = await _coreCmsArticleTypeServices.QueryAsync(); + var list = await _coreCmsArticleTypeServices.QueryListByClauseAsync(p => p.id > 0, p => p.sort, + OrderByType.Desc); //返回数据 jm.data = list; jm.code = 0; diff --git a/CoreCms.Net.Web.Admin/Controllers/Good/CoreCmsBrandController.cs b/CoreCms.Net.Web.Admin/Controllers/Good/CoreCmsBrandController.cs index 93f29ea5..e77037fe 100644 --- a/CoreCms.Net.Web.Admin/Controllers/Good/CoreCmsBrandController.cs +++ b/CoreCms.Net.Web.Admin/Controllers/Good/CoreCmsBrandController.cs @@ -311,7 +311,7 @@ namespace CoreCms.Net.Web.Admin.Controllers return jm; } - if (await _goodsServices.ExistsAsync(p => p.brandId == model.id)) + if (await _goodsServices.ExistsAsync(p => p.brandId == model.id && !p.isDel)) { jm.msg = "有商品关联品牌数据,禁止删除"; return jm; diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/content/article/articletype/index.html b/CoreCms.Net.Web.Admin/wwwroot/views/content/article/articletype/index.html index 5fdf2b90..b2740453 100644 --- a/CoreCms.Net.Web.Admin/wwwroot/views/content/article/articletype/index.html +++ b/CoreCms.Net.Web.Admin/wwwroot/views/content/article/articletype/index.html @@ -10,7 +10,7 @@ -
diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/good/goodsparams/create.html b/CoreCms.Net.Web.Admin/wwwroot/views/good/goodsparams/create.html index 5231a73d..bfc38332 100644 --- a/CoreCms.Net.Web.Admin/wwwroot/views/good/goodsparams/create.html +++ b/CoreCms.Net.Web.Admin/wwwroot/views/good/goodsparams/create.html @@ -6,13 +6,13 @@
- +
- {{# layui.each(d.params.data.goodsParamTypes, function(index, item){ }} @@ -46,7 +46,7 @@ , coreHelper = layui.coreHelper; form.verify({ - verifyname: [/^[\S]{0,10}$/, '参数名称最大只允许输入10位字符,且不能出现空格'], + verifyParamsname: [/^[\S]{0,10}$/, '参数名称最大只允许输入10位字符,且不能出现空格'], verifytype: [/^[\S]{0,10}$/, '参数类型最大只允许输入10位字符,且不能出现空格'], }); //重载form diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/good/goodsparams/edit.html b/CoreCms.Net.Web.Admin/wwwroot/views/good/goodsparams/edit.html index 86fdc6f0..cb99de37 100644 --- a/CoreCms.Net.Web.Admin/wwwroot/views/good/goodsparams/edit.html +++ b/CoreCms.Net.Web.Admin/wwwroot/views/good/goodsparams/edit.html @@ -8,13 +8,13 @@
- +
- {{# layui.each(d.params.data.goodsParamTypes, function(index, item){ }} @@ -49,8 +49,7 @@ , coreHelper = layui.coreHelper; form.verify({ - - verifyname: [/^[\S]{0,10}$/, '参数名称最大只允许输入50位字符,且不能出现空格'], + verifyParamsname: [/^[\S]{0,10}$/, '参数名称最大只允许输入50位字符,且不能出现空格'], verifytype: [/^[\S]{0,10}$/, '参数类型最大只允许输入10位字符,且不能出现空格'], }); //重载form diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/order/servicesOrder/index.html b/CoreCms.Net.Web.Admin/wwwroot/views/order/servicesOrder/index.html index 832c72fa..9456e255 100644 --- a/CoreCms.Net.Web.Admin/wwwroot/views/order/servicesOrder/index.html +++ b/CoreCms.Net.Web.Admin/wwwroot/views/order/servicesOrder/index.html @@ -10,7 +10,7 @@ -
diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/shop/orderdistributionmodel/index.html b/CoreCms.Net.Web.Admin/wwwroot/views/shop/orderdistributionmodel/index.html index 3bafa29e..16a81ec5 100644 --- a/CoreCms.Net.Web.Admin/wwwroot/views/shop/orderdistributionmodel/index.html +++ b/CoreCms.Net.Web.Admin/wwwroot/views/shop/orderdistributionmodel/index.html @@ -10,7 +10,7 @@ -