| | |
| | | @RequestParam(value = "page",required = false) Integer page, |
| | | @RequestParam(value = "size",required = false) Integer size, |
| | | @RequestParam(value = "belongTo",required = false) String belongTo, |
| | | @RequestParam(value = "unitId",required = false) Long unitId); |
| | | @RequestParam(value = "unitId",required = false) Long unitId,@RequestParam(value = "loginAccount",required = false) String loginAccount); |
| | | /** |
| | | * 批量删除活动 |
| | | * @param ids |
| | |
| | | if (empty || empty1) { |
| | | return R.fail("账户密码不能为空"); |
| | | } |
| | | R r = tokenService.loginGridApp(account, password); |
| | | R r = tokenService.loginGridApp(account, password,this.getAppId()); |
| | | if (R.isOk(r)) { |
| | | LoginReturnsVO returnsVO = |
| | | JSONObject.parseObject(JSONObject.toJSONString(r.getData()), LoginReturnsVO.class); |
| | |
| | | if (empty || empty1) { |
| | | return R.fail("账户密码不能为空"); |
| | | } |
| | | R r = tokenService.loginGridBackstage(account, password); |
| | | R r = tokenService.loginGridBackstage(account, password,this.getAppId()); |
| | | return r; |
| | | } |
| | | |
| | |
| | | JSONObject.parseObject(JSONObject.toJSONString(merchant.getData()), ConvenientMerchantVO.class); |
| | | Boolean accountValid = merchantVO.getAccountStatus() == 1; |
| | | if (accountValid) { |
| | | R result = tokenService.loginMerchantBackStage(account, loginBody.getPassword()); |
| | | R result = tokenService.loginMerchantBackStage(account, loginBody.getPassword(),this.getAppId()); |
| | | return result; |
| | | } else { |
| | | return R.fail("账号被禁用"); |
| | |
| | | JSONObject.parseObject(JSONObject.toJSONString(storeR.getData()), ShopStoreVO.class); |
| | | Boolean accountValid = shopStoreVO.getStatus() == 1; |
| | | if (accountValid) { |
| | | R r = tokenService.loginShopBackStage(account, password); |
| | | R r = tokenService.loginShopBackStage(account, password,this.getAppId()); |
| | | return r; |
| | | } else { |
| | | return R.fail("账号被禁用"); |
| | |
| | | R r = userService.getMcsUserByOpenId(openid); |
| | | if (R.isOk(r) && nonNull(r.getData())) { |
| | | McsLoginUserInfoVO loginUserInfoVO = JSONObject.parseObject(JSONObject.toJSONString(r.getData()), McsLoginUserInfoVO.class); |
| | | return tokenService.loginMcsUser(loginUserInfoVO.getAccount(), loginUserInfoVO.getPlaintextPassword()); |
| | | return tokenService.loginMcsUser(loginUserInfoVO.getAccount(), loginUserInfoVO.getPlaintextPassword(),this.getAppId()); |
| | | } |
| | | LoginReturnVO loginReturnVO = new LoginReturnVO(); |
| | | loginReturnVO.setOpenId(openid); |
| | |
| | | McsLoginUserInfoVO loginUserInfoVO = JSONObject.parseObject(JSONObject.toJSONString(r.getData()), McsLoginUserInfoVO.class); |
| | | isValid = loginUserInfoVO.getStatus() == 1; |
| | | if (isValid) { |
| | | R result = tokenService.loginMcsUser(loginUserInfoVO.getAccount(), loginUserInfoVO.getPlaintextPassword()); |
| | | R result = tokenService.loginMcsUser(loginUserInfoVO.getAccount(), loginUserInfoVO.getPlaintextPassword(),this.getAppId()); |
| | | return result; |
| | | } else { |
| | | return R.fail("账号被禁用"); |
| | |
| | | throw new ServiceException("登录错误超过限制,请五分钟后重试"); |
| | | } |
| | | } |
| | | R result = tokenService.loginMcsUser(account, password); |
| | | R result = tokenService.loginMcsUser(account, password,this.getAppId()); |
| | | return result; |
| | | } else { |
| | | return R.fail("账号被禁用"); |
| | |
| | | McsLoginUserInfoVO loginUserInfoVO = JSONObject.parseObject(JSONObject.toJSONString(r.getData()), McsLoginUserInfoVO.class); |
| | | isValid = loginUserInfoVO.getStatus() == 1; |
| | | if (isValid) { |
| | | R result = tokenService.loginMcsUser(loginUserInfoVO.getAccount(), loginUserInfoVO.getPlaintextPassword()); |
| | | R result = tokenService.loginMcsUser(loginUserInfoVO.getAccount(), loginUserInfoVO.getPlaintextPassword(),this.getAppId()); |
| | | return result; |
| | | } else { |
| | | return R.fail("账号被禁用"); |