## 1.2.7(2022-01-1)

通用调整:
【调整】启用SqlSugar.Ioc及SqlSugarCore,弃用SqlSugarClient,保证线程安全及提高对象代码容错率。减少mysql下偶发性问题。
【优化】优化【后台生成小程序码】【后台生成预览页面设计小程序码】代码,并修复【七牛云】上传方式。#I4OHP9
【优化】修复treeTable的折叠列字符字符过长导致内容显示不全的问题。
【调整】应会员需求,开源社区版前端代码增加使用账号密码登录,取回账号密码的示例文档。详情预览【CoreCms.Net.Uni-App\CoreShop\pages\login】下文件。#I4O4H4
【优化】调整首页商品【goods】在根据栏目选择商品时候排序问题,调整为【sort desc,id desc】按照先自定义排序,后数据序列排序。取消【creattime desc】排序。#I4NW4F
【修复】修复首页设计使用【图片模块】导致图片浮动遮挡右下角按钮的问题。#I4NPZL
【优化】调整小程序消息通知设置,当未设置消息提醒时,不弹出错误项提示功能,保证订单下单时到支付订单页面不报错误提示。#I4N4UL。

## 0.0.3 会员版/商业版:
【修复】修复下单界面【添加收货地址】按钮宽度及不居中的问题。
【优化】去除接口生成海报不需要的字体,只保留思源标准字体。
【修复】修复弹窗登录报【checkbox未嵌套的问题】,导致授权页有报错。#I4OYPR
【修复】移除【Microsoft.IdentityModel.Tokens】组件,防止更新组件导致对jwt token校验的影响。
【优化】移除【http.interceptor.js】遗留的前端请求拦截器。
This commit is contained in:
JianWeie
2022-01-03 03:11:25 +08:00
parent 3d08dbfce3
commit 35811f0be1
14 changed files with 114 additions and 241 deletions

View File

@@ -22,7 +22,7 @@ namespace CoreCms.Net.Repository
public abstract class BaseRepository<T> : IBaseRepository<T> where T : class, new()
{
//private readonly IUnitOfWork _unitOfWork;
private readonly SqlSugarClient _dbBase;
private readonly SqlSugarScope _dbBase;
protected BaseRepository(IUnitOfWork unitOfWork)
{

View File

@@ -919,8 +919,8 @@ namespace CoreCms.Net.Repository
}
else
{
var ids = DbClient.Queryable<CoreCmsGoods>().Where(p => p.isDel == false && p.isMarketable == true)
.Select(p => p.id).ToArray();
var ids = await DbClient.Queryable<CoreCmsGoods>().Where(p => p.isDel == false && p.isMarketable == true)
.Select(p => p.id).ToArrayAsync();
var dbIds = new List<int>();
if (ids.Any())
{

View File

@@ -14,6 +14,7 @@ using CoreCms.Net.IRepository.UnitOfWork;
using CoreCms.Net.Loging;
using NLog;
using SqlSugar;
using SqlSugar.IOC;
namespace CoreCms.Net.Repository.UnitOfWork
{
@@ -21,19 +22,24 @@ namespace CoreCms.Net.Repository.UnitOfWork
{
private readonly ISqlSugarClient _sqlSugarClient;
public UnitOfWork(ISqlSugarClient sqlSugarClient)
//public UnitOfWork(ISqlSugarClient sqlSugarClient)
//{
// _sqlSugarClient = sqlSugarClient;
//}
public UnitOfWork()
{
_sqlSugarClient = sqlSugarClient;
_sqlSugarClient = DbScoped.SugarScope;
}
/// <summary>
/// 获取DB保证唯一性
/// </summary>
/// <returns></returns>
public SqlSugarClient GetDbClient()
public SqlSugarScope GetDbClient()
{
// 必须要as后边会用到切换数据库操作
return _sqlSugarClient as SqlSugarClient;
return _sqlSugarClient as SqlSugarScope;
}
public void BeginTran()