Merge branch 'dev/dev_xp' into dev/3.1_release_merge

This commit is contained in:
2025-11-28 13:41:35 +08:00
2 changed files with 6 additions and 0 deletions

View File

@@ -2572,6 +2572,11 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
throw new BusinessException("Access denied. Insufficient permissions.");
}
// 判断当前账号的有效期是否与管理员同步
if (exAccountInfo.getValidEndTime() < adminAcc.getValidEndTime()){
exAccountInfo.setValidEndTime(adminAcc.getValidEndTime());
}
// 校验用户名是否同名
if (!StringUtil.isNullOrEmpty(addSubAccountDTO.getUserName())
&& !exAccountInfo.getUserName().equals(addSubAccountDTO.getUserName())

View File

@@ -167,6 +167,7 @@ public class StripeServiceImpl implements StripeService {
String orderId = orderInfo.getOrderNo();
// Alipay - Not supported when using Checkout in subscription mode or setup mode.
if (payType.equals("recurring")){
sessionBuilder.setMode(SessionCreateParams.Mode.SUBSCRIPTION);
sessionBuilder.setSubscriptionData(SessionCreateParams.SubscriptionData.builder().setDescription("AiDA - " + orderId).build());