!124 【修复】分销用户绑定时判断是否为新用户逻辑错误问题

This commit is contained in:
YunaiV 2024-07-07 11:07:21 +08:00
parent 3d44c2f9e3
commit 2f49ad31f4

View File

@ -290,7 +290,7 @@ public class BrokerageUserServiceImpl implements BrokerageUserService {
*/
private boolean isNewRegisterUser(Long userId) {
MemberUserRespDTO user = memberUserApi.getUser(userId);
return user != null && LocalDateTimeUtils.beforeNow(user.getCreateTime().plusSeconds(30));
return user != null && LocalDateTimeUtils.afterNow(user.getCreateTime().plusSeconds(30));
}
private void validateCanBindUser(BrokerageUserDO user, Long bindUserId) {