|
@@ -109,43 +109,22 @@ namespace DataSharing.CityStateDataExchange
|
|
|
/// <returns></returns>
|
|
|
public async Task UndertakAdviceAsync(OrderDto dto, CancellationToken cancellationToken)
|
|
|
{
|
|
|
- string areaCode = _sharingConfigurationManager.GetCityCode();
|
|
|
//判断推送市州
|
|
|
- string platformSource = "";
|
|
|
- switch (areaCode)
|
|
|
- {
|
|
|
- case "510500": //转泸州12345
|
|
|
- platformSource = "CityDataExchangeLz";
|
|
|
- break;
|
|
|
- case "510300"://转自贡12345
|
|
|
- platformSource = "CityDataExchangeZG";
|
|
|
- break;
|
|
|
- case "511500"://转宜宾12345
|
|
|
- platformSource = "CityDataExchangeYB";
|
|
|
- break;
|
|
|
- case "511000"://转内江12345
|
|
|
- platformSource = "CityDataExchangeNJ";
|
|
|
- break;
|
|
|
-
|
|
|
- default:
|
|
|
- break;
|
|
|
- }
|
|
|
- var userInfoSend = await _dsUserTokenInfoRepository.GetAsync(p => p.PlatformSource == platformSource && p.State == "1", cancellationToken);
|
|
|
- if (userInfoSend is null)
|
|
|
- return;
|
|
|
- string source = userInfoSend.PlatformSourceName;
|
|
|
- string secretKey = GetMD5(source + userInfoSend.AccountSecret);
|
|
|
+ string sendSource = _sharingConfigurationManager.GetHotlineName();
|
|
|
+
|
|
|
|
|
|
var userInfo = await _dsUserTokenInfoRepository.GetAsync(p => p.PlatformSource == dto.Source.ToString() && p.State == "1", cancellationToken);
|
|
|
if (userInfo is null)
|
|
|
return;
|
|
|
|
|
|
+ string secretKey = GetMD5(sendSource + userInfo.AccountSecret);
|
|
|
+
|
|
|
Dictionary<string, object> dic = new()
|
|
|
{
|
|
|
{ "Code", secretKey }, //请求Code
|
|
|
{ "SCDRCode", dto.ExternalId }, //工单编号
|
|
|
{ "UndertakAdvice", HttpUtility.UrlEncode(dto.ActualOpinion.Trim()) }, //承办意见
|
|
|
- { "Source", HttpUtility.UrlEncode(source) } //来源
|
|
|
+ { "Source", HttpUtility.UrlEncode(sendSource) } //来源
|
|
|
};
|
|
|
|
|
|
var config = _sharingConfigurationManager.GetYiBinConfig().CityHandOver;
|