工单 增加 接收服务端推送的新工单,支持 推送增加消息

This commit is contained in:
chfei committed 2026-10-22 09:48:12 +08:00
1 parent f0f1f1ed9e
commit 6ed2cede16
11 files changed
+429 -205

No files matched your search

@@ -5,6 +5,7 @@ using OrderSupportTicket.Models;
using OrderSupportTicket.Models.Api;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
@@ -128,7 +129,7 @@ public sealed class TicketApiService
Limit = limit,
Before = string.IsNullOrWhiteSpace(before) ? null : before
};
Debug.WriteLine($"{wechatOrderId}加载所有对话");
var path = ApiRoot
+ "/messages";
return await PostAsync<WorkOrderMessagesResponse>(path, request);
@@ -456,7 +457,7 @@ public sealed class TicketApiService
EnsureSuccessBody(html);
try
{
var result = JsonConvert.DeserializeObject<T>(html, JsonSettings);
var result = JsonConvert.DeserializeObject<T>(html, JsonSettings);
if (result == null)
throw new JsonSerializationException("接口响应为空。");
return result;