|
@@ -111,9 +111,13 @@ class Goods extends Common
|
|
|
return $goods;
|
|
|
});
|
|
|
|
|
|
- $goods = $service->field('*,price as pricemin')->show()->activity($activity_id)->with(['max_sku_price' => function ($query) { // 计算价格区间用(不知道为啥 with 必须再 show 后面)
|
|
|
+ $goods = $service->field('*,price as pricemin')->show()->activity($activity_id)
|
|
|
+ ->with(
|
|
|
+ [
|
|
|
+ /* 'max_sku_price' => function ($query) { // 计算价格区间用(不知道为啥 with 必须再 show 后面)
|
|
|
$query->where('status', 'up');
|
|
|
- }, 'favorite'])->where('id', $id)->find();
|
|
|
+ }, */'favorite'])
|
|
|
+ ->where('id', $id)->find();
|
|
|
if (!$goods) {
|
|
|
$this->error(__('No Results were found'));
|
|
|
}
|