游客到期时间不置空

This commit is contained in:
2024-12-23 16:07:05 +08:00
parent 7283ace072
commit fa94667c0f
2 changed files with 4 additions and 2 deletions

View File

@@ -1488,12 +1488,14 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
// 将新增用户添加到AiDA身份为游客
if (!newUsersInfo.isEmpty()){
newUsersInfo.forEach(userInfo -> {
long epochMilli = Instant.now().toEpochMilli();
Account account = new Account();
account.setUserEmail(userInfo.get("email"));
account.setUserName(userInfo.get("username"));
account.setUserPassword("Third-000000");
account.setLanguage(Language.ENGLISH.name());
account.setValidStartTime(Instant.now().toEpochMilli());
account.setValidStartTime(epochMilli);
account.setValidEndTime(epochMilli);
account.setCreateDate(new Date());
account.setIsTrial(0);
account.setIsBeginner(1);

View File

@@ -25,7 +25,7 @@
</select>
<update id="toVisitor">
update t_account
set valid_end_time = null, is_trial = 0, credits = 0, system_user = 0, update_date = #{date}
set is_trial = 0, credits = 0, system_user = 0, update_date = #{date}
where id = #{id}
</update>