ZeroLiYi пре 1 година
родитељ
комит
b5d6261d49

+ 6 - 6
src/main/java/com/chinaitop/depot/system/controller/UserInfoController.java

@@ -251,12 +251,12 @@ public class UserInfoController {
251 251
 	public Map<String, Object> Login(HttpServletRequest request, String username, String password, String yzm, String from) {
252 252
 		Map<String, Object> map = new HashMap<String, Object>();
253 253
 		if (StringUtils.isBlank(from) || from.compareTo("app")!=0) {
254
-//			String yzm_code = ObjectUtils.toString(request.getSession().getAttribute("Service_Code"),"");
255
-//			if (!yzm_code.equals(yzm)) {
256
-//				map.put("status", false);
257
-//				map.put("success", "验证码输入错误!");
258
-//
259
-//			}
254
+			String yzm_code = ObjectUtils.toString(request.getSession().getAttribute("Service_Code"),"");
255
+			if (!yzm_code.equals(yzm)) {
256
+				map.put("status", false);
257
+				map.put("success", "验证码输入错误!");
258
+
259
+			}
260 260
 			return map;
261 261
 		}
262 262
 		UserInfo userInfo = null;