记得上下班打卡 | git大法好,push需谨慎

Commit 272dfbee authored by 张国柄's avatar 张国柄

~opt;

parent b903c6ac
...@@ -2150,7 +2150,12 @@ public class GoblinRedisUtils { ...@@ -2150,7 +2150,12 @@ public class GoblinRedisUtils {
return false; return false;
} else { } else {
ids.remove(artworkId); ids.remove(artworkId);
return redisUtil.set(GoblinRedisConst.USER_DIGITAL_ARTWORK_IDS_TRANSFER, ids); if (CollectionUtils.isEmpty(ids)) {
redisUtil.del(GoblinRedisConst.USER_DIGITAL_ARTWORK_IDS_TRANSFER);
} else {
redisUtil.set(GoblinRedisConst.USER_DIGITAL_ARTWORK_IDS_TRANSFER, ids);
}
return true;
} }
} }
......
...@@ -106,7 +106,12 @@ public class PlatformGoblinNftTransferOrderService extends ServiceImpl<GoblinNft ...@@ -106,7 +106,12 @@ public class PlatformGoblinNftTransferOrderService extends ServiceImpl<GoblinNft
return false; return false;
} else { } else {
ids.remove(artworkId); ids.remove(artworkId);
return redisDataSourceUtil.getRedisGoblinUtil().set(GoblinRedisConst.USER_DIGITAL_ARTWORK_IDS_TRANSFER, ids); if (CollectionUtils.isEmpty(ids)) {
redisDataSourceUtil.getRedisGoblinUtil().del(GoblinRedisConst.USER_DIGITAL_ARTWORK_IDS_TRANSFER);
} else {
redisDataSourceUtil.getRedisGoblinUtil().set(GoblinRedisConst.USER_DIGITAL_ARTWORK_IDS_TRANSFER, ids);
}
return true;
} }
} }
/* ------------------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------------------ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment