DEBUG:添加日志打印

This commit is contained in:
2026-05-07 11:14:07 +08:00
parent 921de43b08
commit 75efc341be

View File

@@ -3383,14 +3383,15 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
Account account = accountMapper.selectById(accountId);
if (!Objects.isNull(account.getValidEndTime())
&& account.getValidEndTime().equals(currentPeriodEnd * 1000)) {
log.info("未更新账号有效期。current validEnd:{}, new validEnd:{}", account.getValidEndTime(), currentPeriodEnd);
return false;
} else {
account.setValidEndTime(currentPeriodEnd * 1000);
accountMapper.updateById(account);
log.info("accountId:{} 将账号有效期更新到 {}", accountId, currentPeriodEnd);
}
return true;
}
}
@Override
public void updateUserRoleAndCredits(Long accountId, String orderNo) {