订单列表增加 同步订单

This commit is contained in:
chfei committed 2026-08-19 15:35:42 +08:00
1 parent 4f606c3561
commit cef6300e8e
24 files changed
+2674 -1211

No files matched your search

+40
View File
@@ -0,0 +1,40 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Work._29Tools.BLL;
using WxOrder.Framework.Commons;
namespace Work.ERP.API
{
public class ERPHttp
{
public static string e57PostResponse(string _url, string _data)
{
return HttpResponseWXBLL.e57PostResponse(ERPConfig.Domain + _url, _data, "");
}
public static Task<string> e57PostResponseAsync(string _url, string _data)
{
return HttpResponseWXBLL.e57PostResponseAsync(ERPConfig.Domain + _url, _data);
}
public static async Task<T> e57PostResponseAsync<T>(string _url, string _data) where T : Result, new()
{
try
{
string content = await HttpResponseWXBLL.e57PostResponseAsync(ERPConfig.Domain + _url, _data);
return JsonConvert.DeserializeObject<T>(content);
}
catch (JsonException)
{
return new T { Code = 0, Msg = "数据解析失败" };
}
catch (Exception ex)
{
return new T { Code = 0, Msg = ex.Message };
}
}
}
}