Browse Source

修改验证码

weiximei 6 years ago
parent
commit
addab31fcf

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/code/ICode.java View File

@@ -34,7 +34,7 @@ public interface ICode {
34 34
 
35 35
         }else if (StringUtils.isBlank(code)) {
36 36
             throw new WisdomException("请输入验证码!");
37
-        } else if (!phoneCode.equals(code)) {
37
+        } else if (!code.equals(phoneCode)) {
38 38
             throw new WisdomException("验证码错误!");
39 39
         }
40 40
         // 设置验证码为null字符