万能验证码 61626364
This commit is contained in:
parent
fd0c4f5c5e
commit
5419dd4102
|
|
@ -908,16 +908,13 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
|
||||||
return Result.error("验证码不能为空!");
|
return Result.error("验证码不能为空!");
|
||||||
}
|
}
|
||||||
Msg msg1 = null;
|
Msg msg1 = null;
|
||||||
if (!"prod".equals(profiles) && !"147258".equals(msg)) {
|
if (!"prod".equals(profiles) && !"61626364".equals(msg)) {
|
||||||
msg1 = msgDao.findByPhoneAndCode(phone, msg);
|
msg1 = msgDao.findByPhoneAndCode(phone, msg);
|
||||||
if (msg1 == null) {
|
if (msg1 == null) {
|
||||||
return Result.error("验证码不正确!");
|
return Result.error("验证码不正确!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (msg1 == null) {
|
|
||||||
return Result.error("验证码不正确!");
|
|
||||||
}
|
|
||||||
userInfo = new UserEntity();
|
userInfo = new UserEntity();
|
||||||
UserEntity userEntity = null;
|
UserEntity userEntity = null;
|
||||||
if (StringUtils.isNotEmpty(inviterCode)) {
|
if (StringUtils.isNotEmpty(inviterCode)) {
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,7 @@
|
||||||
|
|
||||||
<select id="findByPhoneAndCode" resultType="com.sqx.modules.app.entity.Msg">
|
<select id="findByPhoneAndCode" resultType="com.sqx.modules.app.entity.Msg">
|
||||||
select * from msg where phone=#{phone}
|
select * from msg where phone=#{phone}
|
||||||
<if test="msg!='147258'">
|
|
||||||
and code = #{msg}
|
and code = #{msg}
|
||||||
</if>
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue