|
|
@@ -2,6 +2,7 @@ package com.cyksj.service.mange.impl;
|
|
|
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
+import com.cyksj.common.constant.Constant;
|
|
|
import com.cyksj.mapper.*;
|
|
|
import com.cyksj.model.entity.*;
|
|
|
import com.cyksj.redis.RedisService;
|
|
|
@@ -43,6 +44,8 @@ public class MirrorUserCleatServiceImpl implements MirrorUserCleatService {
|
|
|
|
|
|
private final GroupsMapper groupsMapper;
|
|
|
|
|
|
+ private final LumaUserMapper lumaUserMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public void delMirrorUser(Long goodsId, Long relationId) {
|
|
|
//gpt镜像
|
|
|
@@ -64,6 +67,17 @@ public class MirrorUserCleatServiceImpl implements MirrorUserCleatService {
|
|
|
redisService.del(RedisService.key.MIDJOURNEY_USER.getName() + user.getUserToken());
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ //luma
|
|
|
+ if (goodsId != null && goodsId == Constant.LUMA_GOODS_ID) {
|
|
|
+ LumaUser user = lumaUserMapper.selectOne(Wrappers.lambdaQuery(LumaUser.class)
|
|
|
+ .eq(LumaUser::getRelationId, relationId).last("limit 1"));
|
|
|
+ if (user != null) {
|
|
|
+ lumaUserMapper.delete(Wrappers.lambdaQuery(LumaUser.class)
|
|
|
+ .eq(LumaUser::getRelationId, relationId));
|
|
|
+ redisService.del(RedisService.key.LUMA_NUM_LIMIT.getName() + user.getId());
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|