Browse Source

手机短信验证功能放开

shengxuefei 2 years ago
parent
commit
da818e897d
1 changed files with 10 additions and 10 deletions
  1. 10 10
      PMS.NetCore/PMS.NetCore/Controllers/MeterController.cs

+ 10 - 10
PMS.NetCore/PMS.NetCore/Controllers/MeterController.cs

@@ -104,16 +104,16 @@ namespace PMS.NetCore.Controllers
             {
                 logger.Info($"【Getfdc_pm_unfare 输入参数】dto:{JsonConvert.SerializeObject(dto)}");
                 SessionHelper sessionHelp = new SessionHelper(_accessor.HttpContext);
-                //if (dto.Phone != sessionHelp.GetSession("phone"))
-                //{
-                //    res.ErrMsg = "手机号不正确";
-                //    return Json(res);
-                //}
-                //if (dto.VeriCode != sessionHelp.GetSession("verifiedCode"))
-                //{
-                //    res.ErrMsg = "手机验证码不正确";
-                //    return Json(res);
-                //}
+                if (dto.Phone != sessionHelp.GetSession("phone"))
+                {
+                    res.ErrMsg = "手机号不正确";
+                    return Json(res);
+                }
+                if (dto.VeriCode != sessionHelp.GetSession("verifiedCode"))
+                {
+                    res.ErrMsg = "手机验证码不正确";
+                    return Json(res);
+                }
                 var service = new fdc_pm_meterrecordManager();
                 var model = service.LoginOwner(dto.Phone);