fix:推送单号没传
This commit is contained in:
parent
7199398dd7
commit
f817b71c05
@ -3,27 +3,40 @@
|
|||||||
"Logging": {
|
"Logging": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"Default": "Debug",
|
"Default": "Debug",
|
||||||
"Microsoft.AspNetCore": "Warning"
|
"Microsoft.AspNetCore": "Debug"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
"DefaultConnection": "server=mysql-dev.default.svc.cluster.local;Database=sjzy_track;Uid=sjzy_dev_user;Pwd=818f83e5;AllowLoadLocalInfile=true;SslMode=None;Charset=utf8mb4;",
|
"DefaultConnection": "server=mysql-dev.default.svc.cluster.local;Database=sjzy_track;Uid=sjzy_dev_user;Pwd=818f83e5;AllowLoadLocalInfile=true;SslMode=None;Charset=utf8mb4;"
|
||||||
|
},
|
||||||
|
"CAP": {
|
||||||
|
"FailedRetryCount": 0,
|
||||||
|
"FailedRetryInterval": 60,
|
||||||
|
"PrefetchCount": 1,
|
||||||
|
"ConsumerThreadCount": 2,
|
||||||
|
"UseDispatchingPerGroup": true,
|
||||||
|
"SucceedMessageExpiredAfter": 21600
|
||||||
},
|
},
|
||||||
"Redis": {
|
"Redis": {
|
||||||
"Host": "redis-dev.default.svc.cluster.local:6379",
|
"Host": "redis-dev.default.svc.cluster.local:6379",
|
||||||
"Password": "gaVEHR3V7qiY",
|
"Password": "gaVEHR3V7qiY",
|
||||||
"MaxPoolSize": 1000,
|
"MaxPoolSize": 1000,
|
||||||
"Database": 6,
|
"Database": 6,
|
||||||
"Prefix": ""
|
"Prefix": "",
|
||||||
|
"IdleTimeout": 1000
|
||||||
},
|
},
|
||||||
"CorsPolicy": [
|
"CorsPolicy": [
|
||||||
""
|
""
|
||||||
],
|
],
|
||||||
"Swagger": {
|
"Swagger": {
|
||||||
"IsEnable": true,
|
"IsEnable": true,
|
||||||
"ServiceUrl": "",
|
"ServiceUrl": "/trackApi",
|
||||||
"JsonUrlPrefix": "", //转发目录前缀,部署服务器时需要配置 /kingmall
|
"JsonUrlPrefix": "/trackApi",
|
||||||
"ScanPrefix": [ "SJZY" ] //全局扫描程序集或xml文件时只加载以 SJZY 开头的内容
|
//转发目录前缀,部署服务器时需要配置 /kingmall
|
||||||
|
"ScanPrefix": [
|
||||||
|
"SJZY"
|
||||||
|
]
|
||||||
|
//全局扫描程序集或xml文件时只加载以 SJZY 开头的内容
|
||||||
},
|
},
|
||||||
"RabbitMQ": {
|
"RabbitMQ": {
|
||||||
"UserName": "sjzy",
|
"UserName": "sjzy",
|
||||||
@ -31,14 +44,18 @@
|
|||||||
"HostName": "rabbitmq-dev.default.svc.cluster.local",
|
"HostName": "rabbitmq-dev.default.svc.cluster.local",
|
||||||
"Port": 5672
|
"Port": 5672
|
||||||
},
|
},
|
||||||
|
"Notice": {
|
||||||
|
"Webhook": "https://open.feishu.cn/open-apis/bot/v2/hook/fbe92f24-7f9f-41ea-a93a-63d855a03bc0",
|
||||||
|
"Title": "😭 轨迹中台开发环境异常"
|
||||||
|
},
|
||||||
"Serilog": {
|
"Serilog": {
|
||||||
"MinimumLevel": {
|
"MinimumLevel": {
|
||||||
"Default": "Information",
|
"Default": "Debug",
|
||||||
"Override": {
|
"Override": {
|
||||||
"System": "Warning",
|
"System": "Debug",
|
||||||
"Microsoft": "Warning",
|
"Microsoft": "Debug",
|
||||||
"Microsoft.Hosting.Lifetime": "Information",
|
"Microsoft.Hosting.Lifetime": "Debug",
|
||||||
"Microsoft.EntityFrameworkCore": "Information"
|
"Microsoft.EntityFrameworkCore": "Debug"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Enrich": [ "FromLogContext", "WithMachineName", "WithProcessId", "WithThreadId" ],
|
"Enrich": [ "FromLogContext", "WithMachineName", "WithProcessId", "WithThreadId" ],
|
||||||
@ -66,13 +83,18 @@
|
|||||||
"Base64PassPassword": "Basic ZWxhc3RpYzphZnlUZ21WYjhqcTY="
|
"Base64PassPassword": "Basic ZWxhc3RpYzphZnlUZ21WYjhqcTY="
|
||||||
},
|
},
|
||||||
"RemoteServices": {
|
"RemoteServices": {
|
||||||
"UserCenter": {
|
|
||||||
"BaseUrl": "http://192.168.80.55:5020/"
|
|
||||||
},
|
|
||||||
"InterfaceForward": {
|
"InterfaceForward": {
|
||||||
"BaseUrl": "http://192.168.80.55:5041/", //开发环境80.55,测试环境80.57
|
"BaseUrl": "http://interfaceapi-test.default.svc.cluster.local:5041/",
|
||||||
"AppKey": "从接口通应用获取",
|
"AppKey": "BSI2302001",
|
||||||
"AppSecret": "从接口通应用获取"
|
"AppSecret": "ArJYL14XZneXpqvpq80wyi3h2hT918AX"
|
||||||
|
},
|
||||||
|
"UserCenter": {
|
||||||
|
"BaseUrl": "http://userapi-dev.default.svc.cluster.local:5020/"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"Language": {
|
||||||
|
"SystemName": "Track",
|
||||||
|
"Index": 6,
|
||||||
|
"KeyPrefix": "language"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -109,11 +109,11 @@ public class TrackPushEventHandler : ITransientDependency, ICapSubscribe
|
|||||||
{
|
{
|
||||||
if (@event.RetryNum < 3)
|
if (@event.RetryNum < 3)
|
||||||
{
|
{
|
||||||
|
@event.RetryNum++;
|
||||||
// 1, 2, 4min
|
// 1, 2, 4min
|
||||||
await _capPublisher.PublishDelayAsync(
|
await _capPublisher.PublishDelayAsync(
|
||||||
TimeSpan.FromSeconds((1 << @event.RetryNum) * 60),
|
TimeSpan.FromSeconds((1 << @event.RetryNum - 1) * RandomHelper.GetRandom(30, 60)),
|
||||||
GlobalConst.TrackPushSubscribe, @event);
|
GlobalConst.TrackPushSubscribe, @event);
|
||||||
@event.RetryNum++;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -161,6 +161,7 @@ public class TrackUpsertEventHandler : ITransientDependency, ICapSubscribe
|
|||||||
{
|
{
|
||||||
OptionType = track.Id.IsNullOrWhiteSpace() ? OptionType.新增 : OptionType.修改,
|
OptionType = track.Id.IsNullOrWhiteSpace() ? OptionType.新增 : OptionType.修改,
|
||||||
OrderId = order.OrderId,
|
OrderId = order.OrderId,
|
||||||
|
OrderNo = order.OrderNo,
|
||||||
TrackStatus = track.TrackStatus,
|
TrackStatus = track.TrackStatus,
|
||||||
TrackCode = track.TrackCode,
|
TrackCode = track.TrackCode,
|
||||||
TrackContent = track.TrackContent,
|
TrackContent = track.TrackContent,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user