商家关闭活动开关能看到套餐列表1

This commit is contained in:
gong
2025-12-19 18:31:46 +08:00
parent e93a93de3b
commit c654ad8d08

View File

@@ -155,7 +155,7 @@ public class PpPackageServiceImpl extends ServiceImpl<PpPackageMapper, PpPackage
// 如果没有开启操作,直接返回空数据
Integer promotionSwitch = getPackagePromotionSwitch(shopId);
if (SystemConstants.OneZero.ZERO == promotionSwitch && !isAdmin) {
if (!isAdmin && SystemConstants.OneZero.ZERO == promotionSwitch) {
log.info("没有开启套餐推广");
return new Page<>();
}