BUGFIX:试用用户积分为0;
This commit is contained in:
@@ -519,7 +519,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
account.setIsTrial(1);
|
account.setIsTrial(1);
|
||||||
account.setIsBeginner(1);
|
account.setIsBeginner(1);
|
||||||
account.setValidStartTime(System.currentTimeMillis());
|
account.setValidStartTime(System.currentTimeMillis());
|
||||||
|
// account.setCredits(BigDecimal.valueOf(0));
|
||||||
if (link) {
|
if (link) {
|
||||||
account.setValidEndTime(Instant.now().plus(14, ChronoUnit.DAYS).toEpochMilli());
|
account.setValidEndTime(Instant.now().plus(14, ChronoUnit.DAYS).toEpochMilli());
|
||||||
}else {
|
}else {
|
||||||
@@ -540,6 +540,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
account.setCreateDate(new Date());
|
account.setCreateDate(new Date());
|
||||||
account.setIsTrial(1);
|
account.setIsTrial(1);
|
||||||
account.setIsBeginner(1);
|
account.setIsBeginner(1);
|
||||||
|
account.setCredits(BigDecimal.valueOf(0));
|
||||||
accountMapper.insert(account);
|
accountMapper.insert(account);
|
||||||
}
|
}
|
||||||
// 发送邮件提醒用户试用用户已创建
|
// 发送邮件提醒用户试用用户已创建
|
||||||
|
|||||||
Reference in New Issue
Block a user