游客到期时间不置空
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user