feat: 新增铺码回调接口与相关配置,优化模板校验逻辑
1. 调整OSS访问域名从HTTPS改为HTTP 2. 新增宠物默认模板枚举并限制删除默认模板 3. 添加书页铺码回调接口与WebAPI端点 4. 配置Redis、HttpClient与OSS SDK服务 5. 新增打印配置项与回调地址 6. 优化PetService代码格式与宠物模板启停逻辑 7. 完善UpdatePageNoAsync的校验与处理逻辑
This commit is contained in:
@ -2,6 +2,8 @@ using Hangfire;
|
||||
using Hangfire.Dashboard;
|
||||
using Hangfire.MemoryStorage;
|
||||
using QYZH.InteractiveMagazine.Infrastructure.RabbitMQ;
|
||||
using QYZH.InteractiveMagazine.Infrastructure.Redis;
|
||||
using QYZH.InteractiveMagazine.Infrastructure.SDK;
|
||||
using QYZH.InteractiveMagazine.Models.Settings;
|
||||
using QYZH.InteractiveMagazine.WorkService.Consumers;
|
||||
using QYZH.InteractiveMagazine.WorkService.Jobs;
|
||||
@ -49,6 +51,9 @@ SugarIocServices.ConfigurationSugar(db =>
|
||||
};
|
||||
});
|
||||
|
||||
// 显式注册 ISqlSugarClient,供后台服务中通过 DI 解析
|
||||
builder.Services.AddScoped<ISqlSugarClient>(_ => DbScoped.SugarScope);
|
||||
|
||||
// 配置Hangfire(内存存储,后续可切换Redis)
|
||||
builder.Services.AddHangfire(config => config
|
||||
.UseMemoryStorage()
|
||||
@ -58,6 +63,15 @@ builder.Services.AddHangfire(config => config
|
||||
}));
|
||||
builder.Services.AddHangfireServer();
|
||||
|
||||
// 配置Redis
|
||||
builder.Services.AddCSRedisCacheExtension(builder.Configuration.GetSection("RedisSettings"));
|
||||
|
||||
// 配置HttpClient
|
||||
builder.Services.AddHttpClient();
|
||||
|
||||
// 配置OSS/SDK服务
|
||||
builder.Services.AddSDKService(builder.Configuration);
|
||||
|
||||
// 配置RabbitMQ
|
||||
builder.Services.AddRabbitMQ(builder.Configuration);
|
||||
|
||||
|
||||
@ -2,6 +2,11 @@
|
||||
"ConnectionStrings": {
|
||||
"DefaultConnection": "server=192.168.20.150;port=13306;database=InteractiveMagazine;user=user;password=n68792bu!y99r905;charset=utf8mb4;"
|
||||
},
|
||||
"RedisSettings": {
|
||||
"ConnectionString": "192.168.20.150:16379,defaultDatabase=5",
|
||||
"Sentinels": [],
|
||||
"ExpireSecondRange": [ 3600, 7200 ]
|
||||
},
|
||||
"RabbitMq": {
|
||||
"HostName": "192.168.20.150",
|
||||
"Port": 5672,
|
||||
@ -55,6 +60,14 @@
|
||||
"DurationSeconds": 3600, //过期时间(秒)
|
||||
"Endpoint": "oss-cn-beijing.aliyuncs.com",
|
||||
"ProjectName": "InteractiveMagazine",
|
||||
"Domain": "https://oss.test.qyzhjy.com/"
|
||||
"Domain": "http://oss.test.qyzhjy.com/"
|
||||
},
|
||||
"PrintConfig": {
|
||||
"DPrint": 0, //打印场景,0:普通激光打印机,1:工业印刷,默认为0(可选)
|
||||
"CallBackApiUrl": "http://localhost:8080/api/page/callbackupdatepageno", // 开发环境 打印成功回调API地址修改打印状态
|
||||
//"CallBackApiUrl": "http://192.168.20.150:8000/api/icr/page/callbackupdatepageno", // 测试环境 打印成功回调API地址修改打印状态
|
||||
//"CallBackApiUrl": "https://zyb.qyzhjy.com/zybback/api/icr/page/callbackupdatepageno", // 正式环境 打印成功回调API地址修改打印状态
|
||||
//这个ID执行的xml文件是:sublic_license_1761.172.8.16_1000.xml,如果想执行sublic_license_1761.211.21.48_10000.xml 换成 765837655859269 ---暂时没有导入页码
|
||||
"DotId": 683790963662917
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user