From 1961452ebc018cf758924f26d9c7aa0b31495227 Mon Sep 17 00:00:00 2001
From: wzp <2040239371@qq.com>
Date: 星期二, 25 十月 2022 16:56:13 +0800
Subject: [PATCH] 开发第三版,主要是修复bug

---
 web/web/Session.ashx |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/web/web/Session.ashx b/web/web/Session.ashx
index cb47d97..f4ad021 100644
--- a/web/web/Session.ashx
+++ b/web/web/Session.ashx
@@ -107,25 +107,25 @@
 
     private JsonPageResult Login(PageContext<SysUser> context)
     {
-        string a = context.Session["Code"] as string;
-        string string1 = context.GetString("code");
-        string string2 = context.GetString("account");
-        string string3 = context.GetString("password");
+        string sessionCode = context.Session["Code"] as string;
+        string code = context.GetString("code");
+        string account = context.GetString("account");
+        string password = context.GetString("password");
         string str = "鐧诲綍鎴愬姛锛�";
         int num = 2;
-        if (string.IsNullOrEmpty(string2))
+        if (string.IsNullOrEmpty(account))
             return new JsonPageResult(false, (object) new
             {
                 Content = "璇疯緭鍏ヨ处鍙峰悗鍐嶇櫥褰曪紒",
                 Tstatus = num
             });
-        if (string.IsNullOrEmpty(string3))
+        if (string.IsNullOrEmpty(password))
             return new JsonPageResult(false, (object) new
             {
                 Content = "璇疯緭鍏ュ瘑鐮佸悗鍐嶇櫥褰曪紒",
                 Tstatus = num
             });
-        if (!string.Equals(a, string1, StringComparison.OrdinalIgnoreCase))
+        if (!string.Equals(sessionCode, code, StringComparison.OrdinalIgnoreCase))
             return new JsonPageResult(false, (object) new
             {
                 Content = "楠岃瘉鐮侀敊璇紝璇烽噸鏂拌緭鍏ワ紒",
@@ -135,9 +135,9 @@
 
         try
         {
-            user = this.dao.GetUser(string2);
-                string3 += user.Salt;
-            if (!this.dao.CheckLogin(string2, string3, user))
+            user = this.dao.GetUser(account);
+            password += user.Salt;
+            if (!this.dao.CheckLogin(account, password, user))
                 return new JsonPageResult(false, (object)new
                 {
                     Content = "鐢ㄦ埛鍚嶆垨瀵嗙爜閿欒锛�",

--
Gitblit v1.9.1