增加同步物流模块

修改现有架构,改为分模块( 简易版)
This commit is contained in:
chfei committed 2026-09-22 17:52:42 +08:00
1 parent 15e11618c9
commit fa03add754
120 files changed
+9438 -299

No files matched your search

@@ -0,0 +1,33 @@
using MAX.Core.Cryptography;
using System.Collections.Generic;
using System.Text;
namespace MAX.Core.Extensions;
public static class DictionaryExtension
{
/// <summary>
/// 字典转url Get 参数
/// </summary>
/// <param name="parameters"></param>
/// <returns></returns>
public static string ToUrlParams(this IDictionary<string, string> parameters, bool IsUrlEncode = true)
{
IDictionary<string, string> sortedParams = new SortedDictionary<string, string>(parameters);
IEnumerator<KeyValuePair<string, string>> dem = sortedParams.GetEnumerator();
StringBuilder sb = new("");
while (dem.MoveNext())
{
string key = dem.Current.Key;
string value = dem.Current.Value;
if (!string.IsNullOrEmpty(key))
{
sb.Append(key).Append("=").Append(IsUrlEncode ? UrlHelper.Encode(value) : value).Append("&");
}
}
string content = sb.ToString().Substring(0, sb.Length - 1);
return content;
}
}