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); } }