101captain
2022-07-26 5e5c692ba40d70c2fa9dac6d5e10f29e06698007
bug修改
1个文件已修改
19 ■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/shop_backstage/src/main/java/com/panzhihua/shop_backstage/api/LoginApi.java 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/shop_backstage/src/main/java/com/panzhihua/shop_backstage/api/LoginApi.java
@@ -48,22 +48,9 @@
        }
        log.info("登录用户信息【{}】",loginBody);
        try {
            R<ShopStoreVO> storeR = communityService.getUserStoreInfoByAccount(account);
            if(R.isOk(storeR)) {
                ShopStoreVO shopStoreVO = JSONObject.parseObject(JSONObject.toJSONString(storeR.getData()), ShopStoreVO.class);
                Boolean accountValid = shopStoreVO.getStatus() == 1;
                if (accountValid) {
                    R r = tokenService.loginShopBackStage(account, password);
                    return r;
                } else {
                    return R.fail("账号被禁用");
                }
            }
            return R.fail(storeR.getMsg());
        }catch (Exception e){
            return R.fail("登陆失败了");
        }
        R r = tokenService.loginShopBackStage(account, password);
        return r;
    }
    @ApiOperation(value = "修改密码")