优化中转仓处理拍单流程 隐藏部分不可用功能

This commit is contained in:
wule committed 2026-11-06 16:11:23 +08:00
1 parent 27ac748f33
commit 518365a0d3
30 files changed
+1237 -634

No files matched your search

+12 -8
View File
@@ -569,6 +569,9 @@ namespace Work._29Tools.BLL
//if (string.IsNullOrEmpty(Authorization)) Authorization = "eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjQ3YmRlOGNlLWY5MDUtNDIzOS05M2VjLWZiN2U3MjRmOTY0NiJ9.vwxhj3t4zTDdBQTyfVjcKr-0Oma8-VtPDzE2LVkw4A4aWftncY1ikXgEhGwoYHn9E7yOnhS_Pb7FfzgecTqqHA";
bool isRetry = false;
Retry:
if (string.IsNullOrEmpty(sAuthorization))
{
var url3 = BaseClass.Build29WxObjString("user/get_e57_authorization");
@@ -579,8 +582,6 @@ namespace Work._29Tools.BLL
sAuthorization = BaseRegex.GetStringJson(ref html3, "authorization");
}
Retry:
HttpWebResponse response = null;
string result;
try
@@ -644,7 +645,7 @@ namespace Work._29Tools.BLL
return e.Message;
}
result = HttpResponseBLL.ReadResponse(response);
if (result.Contains("没有Authorization") && !isRetry)
if ((result.Contains("没有Authorization") || result.Contains("授权过期")) && !isRetry)
{
isRetry = true;
sAuthorization = "";
@@ -660,6 +661,9 @@ namespace Work._29Tools.BLL
////if (string.IsNullOrEmpty(Authorization)) Authorization = "eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjQ3YmRlOGNlLWY5MDUtNDIzOS05M2VjLWZiN2U3MjRmOTY0NiJ9.vwxhj3t4zTDdBQTyfVjcKr-0Oma8-VtPDzE2LVkw4A4aWftncY1ikXgEhGwoYHn9E7yOnhS_Pb7FfzgecTqqHA";
bool isRetry = false;
Retry:
if (string.IsNullOrEmpty(sAuthorization))
{
var url3 = BaseClass.Build29WxObjString("user/get_e57_authorization");
@@ -670,8 +674,6 @@ namespace Work._29Tools.BLL
sAuthorization = BaseRegex.GetStringJson(ref html3, "authorization");
}
Retry:
HttpWebResponse response = null;
string result;
try
@@ -726,7 +728,7 @@ namespace Work._29Tools.BLL
return e.Message;
}
result = HttpResponseBLL.ReadResponse(response);
if (result.Contains("没有Authorization") && !isRetry)
if ((result.Contains("没有Authorization") || result.Contains("授权过期")) && !isRetry)
{
isRetry = true;
sAuthorization = "";
@@ -738,6 +740,9 @@ namespace Work._29Tools.BLL
public static string e57GetResponse(string _url, string referer)
{
bool isRetry = false;
Retry:
if (string.IsNullOrEmpty(sAuthorization))
{
var url3 = BaseClass.Build29WxObjString("user/get_e57_authorization");
@@ -747,7 +752,6 @@ namespace Work._29Tools.BLL
html3 = GetHtml.PostUtf8(url3, data3);
sAuthorization = BaseRegex.GetStringJson(ref html3, "authorization");
}
Retry:
HttpWebResponse response = null;
string result;
@@ -802,7 +806,7 @@ namespace Work._29Tools.BLL
return e.Message;
}
result = HttpResponseBLL.ReadResponse(response);
if (result.Contains("没有Authorization") && !isRetry)
if ((result.Contains("没有Authorization") || result.Contains("授权过期")) && !isRetry)
{
isRetry = true;
sAuthorization = "";