mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-03-23 12:27:20 +08:00
# 2022-03-16
### 1.4.0 开源社区版: 【优化】首页标题默认设置为空,防止数据加载缓慢导致显示空的情况。#I4XM14 ### 0.2.9 专业版: 【升级】升级uniapp前端框架到UView2.0.29版本。修复一些组件的细节bug,详情查询uviewui更新文档。 【优化】首页标题默认设置为空,防止数据加载缓慢导致显示空的情况。#I4XM14 【修复】修复BaseRepository中有SqlWith.NoLock使用Where错误的BUG。#I4XKFW 【修复】修复商品详情轮播图点击无法预览的问题。 【修复】自定义交易组件,在目录审核通过后,极端情况下会出现还需要“商品资质图片”的bug。 【新增】后台页面设计界面,增加常用前端的pages链接地址地址,方便进行复制使用。 【新增】普通商品详情,服务商品详情,拼团商品详情,秒杀商品详情,团购商品详情增加点击客服聊天,发送商品卡片功能,客服能直接接收到客户浏览的详情页面信息。 【新增】后台商城设置里面的“页面设计”功能页面,新增一个自定义页面的url 地址,便于复制引用如小程序中。#I4VZ6D 【修复】修复后台管理,编辑分销用户须知,分销协议,提交到代理方法的问题。#I4W5YL 【升级】升级后端打印组件版本。解决旧版本过低,导致新版本浏览器安装后无法调用的问题。#I4XDKC 【修复】修复mysql数据库有几个表存在主键未设置自增的问题,并发布完成版本。#I4XCT0 【升级】mysql数据库增加日历签到四个表。
This commit is contained in:
@@ -50,6 +50,9 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
private readonly IWebHostEnvironment _webHostEnvironment;
|
||||
private readonly IWeChatTransactionComponentGoodServices _weChatTransactionComponentGoodsServices;
|
||||
private readonly IWeChatTransactionComponentGoodSKUServices _weChatTransactionComponentGoodSkuServices;
|
||||
|
||||
private readonly IWeChatTransactionComponentAuditCategoryServices
|
||||
_weChatTransactionComponentAuditCategoryServices;
|
||||
private readonly ICoreCmsProductsServices _productsServices;
|
||||
private readonly WeChat.Service.HttpClients.IWeChatApiHttpClientFactory _weChatApiHttpClientFactory;
|
||||
|
||||
@@ -58,13 +61,14 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
/// 构造函数
|
||||
///</summary>
|
||||
public WeChatTransactionComponentGoodController(IWebHostEnvironment webHostEnvironment
|
||||
, IWeChatTransactionComponentGoodServices weChatTransactionComponentGoodsServices, IWeChatTransactionComponentGoodSKUServices weChatTransactionComponentGoodSkuServices, ICoreCmsProductsServices productsServices, IWeChatApiHttpClientFactory weChatApiHttpClientFactory)
|
||||
, IWeChatTransactionComponentGoodServices weChatTransactionComponentGoodsServices, IWeChatTransactionComponentGoodSKUServices weChatTransactionComponentGoodSkuServices, ICoreCmsProductsServices productsServices, IWeChatApiHttpClientFactory weChatApiHttpClientFactory, IWeChatTransactionComponentAuditCategoryServices weChatTransactionComponentAuditCategoryServices)
|
||||
{
|
||||
_webHostEnvironment = webHostEnvironment;
|
||||
_weChatTransactionComponentGoodsServices = weChatTransactionComponentGoodsServices;
|
||||
_weChatTransactionComponentGoodSkuServices = weChatTransactionComponentGoodSkuServices;
|
||||
_productsServices = productsServices;
|
||||
_weChatApiHttpClientFactory = weChatApiHttpClientFactory;
|
||||
_weChatTransactionComponentAuditCategoryServices = weChatTransactionComponentAuditCategoryServices;
|
||||
}
|
||||
|
||||
#region 获取列表============================================================
|
||||
@@ -412,7 +416,18 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
request.Title = model.title;
|
||||
request.PagePath = model.path;
|
||||
request.HeadImageUrlList = new List<string>(model.headImg.Split(","));
|
||||
request.QualificationPictureUrlList = new List<string>();
|
||||
|
||||
var category = await _weChatTransactionComponentAuditCategoryServices.QueryByClauseAsync(p => p.level3 == model.thirdCatId, true);
|
||||
if (category!=null && !string.IsNullOrEmpty(category.certificateImage))
|
||||
{
|
||||
request.QualificationPictureUrlList = new List<string>(category.certificateImage.Split(","));
|
||||
}
|
||||
else
|
||||
{
|
||||
request.QualificationPictureUrlList = new List<string>();
|
||||
}
|
||||
|
||||
|
||||
request.Detail = new ShopSPUAddRequest.Types.Detail();
|
||||
|
||||
request.Detail.Description = model.descInfoDesc;
|
||||
@@ -520,7 +535,17 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
request.Title = model.title;
|
||||
request.PagePath = model.path;
|
||||
request.HeadImageUrlList = new List<string>(model.headImg.Split(","));
|
||||
request.QualificationPictureUrlList = new List<string>();
|
||||
|
||||
var category = await _weChatTransactionComponentAuditCategoryServices.QueryByClauseAsync(p => p.level3 == model.thirdCatId, true);
|
||||
if (category != null && !string.IsNullOrEmpty(category.certificateImage))
|
||||
{
|
||||
request.QualificationPictureUrlList = new List<string>(category.certificateImage.Split(","));
|
||||
}
|
||||
else
|
||||
{
|
||||
request.QualificationPictureUrlList = new List<string>();
|
||||
}
|
||||
|
||||
request.Detail = new ShopSPUUpdateRequest.Types.Detail();
|
||||
|
||||
request.Detail.Description = model.descInfoDesc;
|
||||
|
||||
Reference in New Issue
Block a user