Commit 91e0e5b2 by guojuxing

如果已经关注过,则不再重复生成二维码

parent 846d771e
......@@ -108,6 +108,10 @@ public class LoginController {
if (userDTO == null) {
return EnterpriseRestResponse.failure(ErrorCode.LOGIN_ERR);
}
if (StringUtils.isNotBlank(userDTO.getOpenId())) {
//如果已经关注过,不再生成
return RestResponse.success();
}
return ResultControllerUtils.commonResult(userApiService.getUserQrcode(userDTO.getUserId(), enterpriseId));
}
return RestResponse.success();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment