wang hou sheng 8 months ago
parent 8463a37e15
commit 2cbc6de877
  1. 4
      app/api/model/Goods.php

@ -243,7 +243,6 @@ class Goods extends GoodsModel
{
$list = [];
$cate_goods_id = [];
$model = new PreSale();
$info = $model->where(['is_change' => 0, 'status' => 1])->field('goods_list,p_time')->find();
if (!$info->isEmpty()) {
@ -255,6 +254,9 @@ class Goods extends GoodsModel
->where(['category_id' => $param['category_id']])
->whereIn('goods_id', $goods_ids)
->column('distinct goods_id');
if ($cate_goods_id) {
return $list;
}
}
if ($cate_goods_id) {
$goods_ids = $cate_goods_id;

Loading…
Cancel
Save