diff --git a/CoreCms.Net.Services/Shop/CoreCmsPagesServices.cs b/CoreCms.Net.Services/Shop/CoreCmsPagesServices.cs index fe14348..c102bbb 100644 --- a/CoreCms.Net.Services/Shop/CoreCmsPagesServices.cs +++ b/CoreCms.Net.Services/Shop/CoreCmsPagesServices.cs @@ -497,7 +497,7 @@ namespace CoreCms.Net.Services var articleClassifyId = parameters["articleClassifyId"].ObjectToInt(0); var limit = parameters["limit"].ObjectToInt(0); limit = limit > 0 ? limit : 20; - var list = await _articleServices.QueryPageAsync(p => p.typeId == articleClassifyId, + var list = await _articleServices.QueryPageAsync(p => p.typeId == articleClassifyId && p.isPub == true, p => p.createTime, OrderByType.Desc, 1, limit); if (list != null && list.Any()) { diff --git a/CoreCms.Net.Uni-App/CoreShop/common/setting/constVarsHelper.js b/CoreCms.Net.Uni-App/CoreShop/common/setting/constVarsHelper.js index 2ffaf6d..9d255c3 100644 --- a/CoreCms.Net.Uni-App/CoreShop/common/setting/constVarsHelper.js +++ b/CoreCms.Net.Uni-App/CoreShop/common/setting/constVarsHelper.js @@ -4,10 +4,9 @@ */ //接口请求地址,如果需要不部署接口端的情况下测试uni-app,可以直接替换为官方测试接口:https://api.demo.coreshop.cn -export const apiBaseUrl = 'https://api.demo.coreshop.cn'; +export const apiBaseUrl = 'https://api.nsts.mvccms.cn'; //项目静态资源请求地址,如果使用官方的静态文件地址可以直接替换为:https://files.cdn.coreshop.cn export const apiFilesUrl = 'https://files.cdn.coreshop.cn'; - export const h5Url = apiBaseUrl + "/wap/"; //H5端网站地址, // #ifdef H5 diff --git a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-page/coreshop-article.vue b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-page/coreshop-article.vue index b80abd8..517f0d6 100644 --- a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-page/coreshop-article.vue +++ b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-page/coreshop-article.vue @@ -43,7 +43,7 @@