lcl 6 сар өмнө
parent
commit
cd2306d450

+ 13 - 10
Areas/Api/Controllers/Main/MerchantAddInfoController.cs

@@ -815,16 +815,19 @@ namespace MySystem.Areas.Api.Controllers.v1
             {
                 return Json(new AppResultJson() { Status = "-1", Info = "手机号最多11个字符" });
             }
-            MobileCodeCheck mobilecheck = RedisDbconn.Instance.Get<MobileCodeCheck>("MobileCodeCheck:" + Mobile);
-            if (mobilecheck == null)
-            {
-                return Json(new AppResultJson() { Status = "-1", Info = "短信验证码不正确" });
-            }
-            if (mobilecheck.CheckCode != MobileCode)
-            {
-                return Json(new AppResultJson() { Status = "-1", Info = "短信验证码不正确" });
-            }
-            RedisDbconn.Instance.Delete("MobileCodeCheck:" + Mobile);
+            // if(MobileCode != "999999")
+            // {
+                MobileCodeCheck mobilecheck = RedisDbconn.Instance.Get<MobileCodeCheck>("MobileCodeCheck:" + Mobile);
+                if (mobilecheck == null)
+                {
+                    return Json(new AppResultJson() { Status = "-1", Info = "短信验证码不正确" });
+                }
+                if (mobilecheck.CheckCode != MobileCode)
+                {
+                    return Json(new AppResultJson() { Status = "-1", Info = "短信验证码不正确" });
+                }
+                RedisDbconn.Instance.Delete("MobileCodeCheck:" + Mobile);
+            // }
             if(SettleFee == "0.25") SettleFee = "0.25";
             else if(SettleFee == "0.30") SettleFee = "0.30";
             else SettleFee = "0.38";