Merge branch 'dev/dev_xp' into dev/3.1_release_merge
This commit is contained in:
@@ -2572,6 +2572,11 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
throw new BusinessException("Access denied. Insufficient permissions.");
|
throw new BusinessException("Access denied. Insufficient permissions.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 判断当前账号的有效期是否与管理员同步
|
||||||
|
if (exAccountInfo.getValidEndTime() < adminAcc.getValidEndTime()){
|
||||||
|
exAccountInfo.setValidEndTime(adminAcc.getValidEndTime());
|
||||||
|
}
|
||||||
|
|
||||||
// 校验用户名是否同名
|
// 校验用户名是否同名
|
||||||
if (!StringUtil.isNullOrEmpty(addSubAccountDTO.getUserName())
|
if (!StringUtil.isNullOrEmpty(addSubAccountDTO.getUserName())
|
||||||
&& !exAccountInfo.getUserName().equals(addSubAccountDTO.getUserName())
|
&& !exAccountInfo.getUserName().equals(addSubAccountDTO.getUserName())
|
||||||
|
|||||||
@@ -167,6 +167,7 @@ public class StripeServiceImpl implements StripeService {
|
|||||||
String orderId = orderInfo.getOrderNo();
|
String orderId = orderInfo.getOrderNo();
|
||||||
|
|
||||||
|
|
||||||
|
// Alipay - Not supported when using Checkout in subscription mode or setup mode.
|
||||||
if (payType.equals("recurring")){
|
if (payType.equals("recurring")){
|
||||||
sessionBuilder.setMode(SessionCreateParams.Mode.SUBSCRIPTION);
|
sessionBuilder.setMode(SessionCreateParams.Mode.SUBSCRIPTION);
|
||||||
sessionBuilder.setSubscriptionData(SessionCreateParams.SubscriptionData.builder().setDescription("AiDA - " + orderId).build());
|
sessionBuilder.setSubscriptionData(SessionCreateParams.SubscriptionData.builder().setDescription("AiDA - " + orderId).build());
|
||||||
|
|||||||
Reference in New Issue
Block a user