|
|
@@ -308,6 +308,12 @@ public class CmsGroupServiceImpl extends ServiceImpl<GroupsMapper,GroupsTrips> i
|
|
|
throw BusinessRuntimeException.getInstance("该平台下已生成该账号");
|
|
|
}
|
|
|
}
|
|
|
+ //Claude3只允许替换一次
|
|
|
+ if (Constant.CALUDE_GOODS_ID.equals(groupsAccountView.getGoodsId())) {
|
|
|
+ Integer count = replaceRecordMapper.selectCount(Wrappers.lambdaQuery(GroupsTripsAccountReplaceRecord.class)
|
|
|
+ .eq(GroupsTripsAccountReplaceRecord::getGroupsId, groupsAccountView.getGroupsId()));
|
|
|
+ if (count > 0) throw BusinessRuntimeException.getInstance("Claude3账号只允许替换一次");
|
|
|
+ }
|
|
|
if (afterStartTime == null) {
|
|
|
afterStartTime = groupsAccountView.getStartTime();
|
|
|
}
|