游客到期时间不置空
This commit is contained in:
@@ -1488,12 +1488,14 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
// 将新增用户添加到AiDA,身份为游客
|
// 将新增用户添加到AiDA,身份为游客
|
||||||
if (!newUsersInfo.isEmpty()){
|
if (!newUsersInfo.isEmpty()){
|
||||||
newUsersInfo.forEach(userInfo -> {
|
newUsersInfo.forEach(userInfo -> {
|
||||||
|
long epochMilli = Instant.now().toEpochMilli();
|
||||||
Account account = new Account();
|
Account account = new Account();
|
||||||
account.setUserEmail(userInfo.get("email"));
|
account.setUserEmail(userInfo.get("email"));
|
||||||
account.setUserName(userInfo.get("username"));
|
account.setUserName(userInfo.get("username"));
|
||||||
account.setUserPassword("Third-000000");
|
account.setUserPassword("Third-000000");
|
||||||
account.setLanguage(Language.ENGLISH.name());
|
account.setLanguage(Language.ENGLISH.name());
|
||||||
account.setValidStartTime(Instant.now().toEpochMilli());
|
account.setValidStartTime(epochMilli);
|
||||||
|
account.setValidEndTime(epochMilli);
|
||||||
account.setCreateDate(new Date());
|
account.setCreateDate(new Date());
|
||||||
account.setIsTrial(0);
|
account.setIsTrial(0);
|
||||||
account.setIsBeginner(1);
|
account.setIsBeginner(1);
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
</select>
|
</select>
|
||||||
<update id="toVisitor">
|
<update id="toVisitor">
|
||||||
update t_account
|
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}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user