| | |
| | | } |
| | | 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 = "修改密码") |