DuGuYang %!s(int64=2) %!d(string=hai) anos
pai
achega
9e16af7980
Modificáronse 1 ficheiros con 36 adicións e 38 borrados
  1. 36 38
      Areas/Admin/Controllers/MainServer/SysToolsController.cs

+ 36 - 38
Areas/Admin/Controllers/MainServer/SysToolsController.cs

@@ -5449,6 +5449,42 @@ namespace MySystem.Areas.Admin.Controllers
         }
         #endregion
 
+        
+        #region 码牌加密
+
+        public IActionResult QrCodeEncryption(string right)
+        {
+            ViewBag.RightInfo = RightInfo;
+            ViewBag.right = right;
+
+            return View();
+        }
+
+        [HttpPost]
+        public string QrCodeEncryptionDo(string SnNos)
+        {
+            string[] SnNo = SnNos.Replace("\r", "").Replace("\n", ",").Split(',');
+            string code = "";
+            string sn = "";
+            for (int a = 0; a < SnNo.Length; a++)
+            {
+                string start = SnNo[a];
+                for (int i = 0; i <= 9999; i++)
+                {
+                    string num = i.ToString();
+                    for (int j = 0; j < 4 - i.ToString().Length; j++)
+                    {
+                        num = "0" + num;
+                    }
+                    sn = dbconn.Encrypt3DES(start + num + function.get_Random(8), "l2k0b2#3");
+                    sn = sn.Substring(0, sn.Length - 1);
+                }
+                code += System.Web.HttpUtility.UrlEncode(sn) + "<br />\n";
+            }
+            return "success" + "|" + code;
+        }
+        #endregion
+
 
         #region 直营团队数据
 
@@ -5596,43 +5632,5 @@ namespace MySystem.Areas.Admin.Controllers
         }
         #endregion
 
-        
-
-
-        #region 码牌加密
-
-        public IActionResult QrCodeEncryption(string right)
-        {
-            ViewBag.RightInfo = RightInfo;
-            ViewBag.right = right;
-
-            return View();
-        }
-
-        [HttpPost]
-        public string QrCodeEncryptionDo(string SnNos)
-        {
-            string[] SnNo = SnNos.Replace("\r", "").Replace("\n", ",").Split(',');
-            string code = "";
-            string sn = "";
-            for (int a = 0; a < SnNo.Length; a++)
-            {
-                string start = SnNo[a];
-                for (int i = 0; i <= 9999; i++)
-                {
-                    string num = i.ToString();
-                    for (int j = 0; j < 4 - i.ToString().Length; j++)
-                    {
-                        num = "0" + num;
-                    }
-                    sn = dbconn.Encrypt3DES(start + num + function.get_Random(8), "l2k0b2#3");
-                    sn = sn.Substring(0, sn.Length - 1);
-                }
-                code += System.Web.HttpUtility.UrlEncode(sn) + "<br />\n";
-            }
-            return "success" + "|" + code;
-        }
-        #endregion
-
     }
 }