修改 发布正式环境配置

修复 正式环境数据库切换至RDS
This commit is contained in:
小肥羊 2025-03-14 11:11:45 +08:00
parent 7c0e39a43e
commit 6f312821df
3 changed files with 4 additions and 4 deletions

View File

@ -7,8 +7,8 @@
{
"UserName": "hy",
"Pwd": "9718CB3C9A0760CA326767D677ADEC1C",
"Host": "192.168.2.21:10107",
"NickName": "",
"Host": "10.127.127.107",
"NickName": "10楼刀片机",
"IIsFireUrl": null,
"DockerFireUrl": "",
"WindowsServiceFireUrl": null,

View File

@ -14,7 +14,7 @@
},
"DB": {
//"ConnectionString": "AllowLoadLocalInfile=true;Server=10.255.255.3;Port=3306;Database=learn.videoanalysis;User ID=marking;Password=qwe123!@#;CharSet=utf8mb4;pooling=true;SslMode=None",
"ConnectionString": "AllowLoadLocalInfile=true;Server=rm-2vc20nd3d11g0oh6g.rwlb.cn-chengdu.rds.aliyuncs.com;User ID=marking;Password=poiuytPOIUYT098765)(*&^%;Port=3306;Database=learn.videoanalysis;CharSet=utf8mb4;pooling=true;SslMode=None",
"ConnectionString": "AllowLoadLocalInfile=true;Server=rm-2vc20nd3d11g0oh6g2o.rwlb.cn-chengdu.rds.aliyuncs.com;User ID=marking;Password=poiuytPOIUYT098765)(*&^%;Port=3306;Database=learn.videoanalysis;CharSet=utf8mb4;pooling=true;SslMode=None",
"SqlType": "MySql",
"UpdateTable": false
}

View File

@ -346,7 +346,7 @@ namespace VideoAnalysisCore.Common
Redis.HMSet(RedisExpandKey.Task(taskId), "Progress", 0);
lock (Redis)
{
DbScoped.Sugar.Updateable<VideoTask>()
DbScoped.SugarScope.Updateable<VideoTask>()
.SetColumns(it => it.LastEnum == key)
.Where(it => it.Id == tID)
.ExecuteCommand();