修改商城快讯关联
This commit is contained in:
parent
56a68a6baf
commit
fcce6c2bd4
@ -232,10 +232,10 @@ class IndexLogic extends Logic
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if ($v['mall_type'] == 1) {
|
} else if ($v['mall_type'] == 1) {
|
||||||
$v['shop'] = MallNewsShop::with('files')
|
$v['shop'] = MallNewsShop::alias('mns')
|
||||||
->alias('mns')
|
|
||||||
->join('goods g', 'mns.shop_id = g.id')
|
->join('goods g', 'mns.shop_id = g.id')
|
||||||
->field('mns.id, g.id as gid, g.name')
|
->join('mall_news_file mnf', 'mns.id = mnf.mall_news_shop_id')
|
||||||
|
->field('mns.id, g.id as gid, g.name, mnf.src')
|
||||||
->where(['mns.delete_time' => 0])->whereIn('mns.id', $v['mall_news_goods_id'])->select()->toArray();
|
->where(['mns.delete_time' => 0])->whereIn('mns.id', $v['mall_news_goods_id'])->select()->toArray();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user