|
@@ -57,9 +57,13 @@ namespace Sharing.Province.Handlers.XieTong
|
|
|
var response = await pusher.PushGetCaseProcessReceiveAsync(request, cancellationToken);
|
|
|
|
|
|
//如果推送成功修改数据状态
|
|
|
- if (response != null && response.Code == "1")
|
|
|
+ if (response != null)
|
|
|
{
|
|
|
- notification.Data.SyncState = "1";
|
|
|
+ if (response.Code == "1")
|
|
|
+ notification.Data.SyncState = "1";
|
|
|
+ else
|
|
|
+ notification.Data.SyncState = "2";
|
|
|
+
|
|
|
notification.Data.ReturnResult = Newtonsoft.Json.JsonConvert.SerializeObject(response);
|
|
|
await _getCaseProcessReceiveRepository.UpdateAsync(notification.Data);
|
|
|
}
|