获取霸王餐配置修改

This commit is contained in:
张松 2025-10-20 14:21:05 +08:00
parent bbec3575e7
commit 2b286e6a07
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ public class PayServiceImpl implements PayService {
throw new ValidateException("充值金额不正确");
}
if (payParam.getOrderId() != null) {
FreeDineConfig freeConfig = freeConfigService.getById(payParam.getShopId());
FreeDineConfig freeConfig = freeConfigService.getById(shopInfoService.getMainIdByShopId(payParam.getShopId()));
AssertUtil.isNull(freeConfig, "该店铺未启用霸王餐");
if (!freeConfig.getEnable()) {
throw new CzgException("该店铺未启用霸王餐");