From e697d01d3035d8f522bebd7f617a7da9deaf5005 Mon Sep 17 00:00:00 2001 From: cjy Date: Wed, 25 Sep 2024 17:54:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=9F=E6=88=B7=E6=8E=88=E6=9D=83mysql?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E6=8A=A5=E9=94=99=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ds-wms-service/DS.WMS.AdminApi/appsettings.json | 2 +- ds-wms-service/DS.WMS.Core/Sys/Method/TenantService.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ds-wms-service/DS.WMS.AdminApi/appsettings.json b/ds-wms-service/DS.WMS.AdminApi/appsettings.json index e3d1a10f..0b180ccb 100644 --- a/ds-wms-service/DS.WMS.AdminApi/appsettings.json +++ b/ds-wms-service/DS.WMS.AdminApi/appsettings.json @@ -19,7 +19,7 @@ "DBInfo": { "DefaultDbConnId": "1288018625843826688", "DefaultDbType": 0, - "DefaultDbString": "server=rm-m5e06xxqpa68a68ry5o.mysql.rds.aliyuncs.com;port=3306;uid=rulesengine_admin;pwd=Rule1qaz2wsx!QAZ;database=shippingweb8_dev", + "DefaultDbString": "server=rm-m5e06xxqpa68a68ry5o.mysql.rds.aliyuncs.com;port=3306;uid=rulesengine_admin;pwd=Rule1qaz2wsx!QAZ;database=shippingweb8_dev;pooling=false", "DBS": [ { "ConnId": "1288018625843826680", diff --git a/ds-wms-service/DS.WMS.Core/Sys/Method/TenantService.cs b/ds-wms-service/DS.WMS.Core/Sys/Method/TenantService.cs index 154fa0df..fd804641 100644 --- a/ds-wms-service/DS.WMS.Core/Sys/Method/TenantService.cs +++ b/ds-wms-service/DS.WMS.Core/Sys/Method/TenantService.cs @@ -29,7 +29,7 @@ public class TenantService : ITenantService public TenantService(IServiceProvider serviceProvider) { _serviceProvider = serviceProvider; - db = _serviceProvider.GetRequiredService(); + db = _serviceProvider.GetRequiredService().CopyNew(); saasService = _serviceProvider.GetRequiredService(); } @@ -187,7 +187,7 @@ public class TenantService : ITenantService catch (Exception ex) { db.Ado.RollbackTran(); - ex.LogAsync(db).GetAwaiter().GetResult(); + //ex.LogAsync(db).GetAwaiter().GetResult(); return DataResult.Failed("租户权限模块授权失败!" + ex, MultiLanguageConst.DataUpdateFailed); } }