|
@@ -99,14 +99,17 @@ namespace DataSharing.LuZhou.LuZhou110
|
|
|
{
|
|
|
response = await _lz110Invoker.RequestStringContentAsync<LZ110BaseResponse>(item.Path, item.Request, cancellationToken);
|
|
|
_logger.LogInformation($"发起请求LZ110返回111111111:{JsonConvert.SerializeObject(response)}");
|
|
|
- //if (!response.IsSuccess && response?.Data?.ResponseStatusObject.StatusCode == "1")// ==1:未注册,==4:已注册
|
|
|
- //{
|
|
|
- // await _registerManager.RefreshRegisterAsync(cancellationToken);
|
|
|
- // response = await _lz110Invoker.RequestStringContentAsync<LZ110BaseResponse>(item.Path, item.Request, cancellationToken);
|
|
|
- //}
|
|
|
+ if (!response.IsSuccess && response?.Data?.ResponseStatusObject.StatusCode == "1")// ==1:未注册,==4:已注册
|
|
|
+ {
|
|
|
+ await _registerManager.RefreshRegisterAsync(cancellationToken);
|
|
|
+ _logger.LogInformation($"发起请求LZ110返回222222:{JsonConvert.SerializeObject(response)}");
|
|
|
+ response = await _lz110Invoker.RequestStringContentAsync<LZ110BaseResponse>(item.Path, item.Request, cancellationToken);
|
|
|
+ _logger.LogInformation($"发起请求LZ110返回333333:{JsonConvert.SerializeObject(response)}");
|
|
|
+ }
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
+ _logger.LogInformation($"发起请求LZ110返回333333:{ex.Message}");
|
|
|
error = ex.Message;
|
|
|
}
|
|
|
|