This commit is contained in:
chfei authored and chfei committed 2026-09-14 09:16:59 +08:00
1 parent c2dcedd238
commit 16cdd3d46e
34 files changed
+837 -481

No files matched your search

+2 -5
View File
@@ -2,8 +2,6 @@
using MAX.Core.Extensions;
using MAX.Core.Helpers;
using Store.Client.Agent;
using Store.Client.Commons;
using Store.Client.Extensions;
using Store.Client.HttpExtension;
using Store.Framework;
using Store.Framework.Tools;
@@ -26,7 +24,7 @@ namespace Store.Client.Apis
{
_logger.Info("123");
int r2 = RandomHelper.GetRandomNumber(100000000, 899999999); //生成随机码
ServerHttpItem item = new ServerHttpItem();
HttpItem item = new HttpItem();
item.URL = base.BuildServiceUrl("user/user_login");
item.Method = MethodType.Post;
Dictionary<string, string> param = new Dictionary<string, string>
@@ -44,14 +42,13 @@ namespace Store.Client.Apis
//{ "client_addr", _client.Address }
};
item.Postdata = param.ToUrlParams();
item.Sign();
HttpResult result = ServerRequest(item);
if (result.StatusCode == HttpStatusCode.OK)
{
string chCode = Regex.Match(result.Html, "<c>([^<]+)</c>")?.Groups[1]?.Value ?? "";
if (!string.IsNullOrEmpty(chCode))
{
string codex = SignTool.Encryption(r2);
string codex = Encryption(r2);
if (chCode != codex)
{
result.StatusCode = HttpStatusCode.Unauthorized;