测试api商城快讯模型关联
This commit is contained in:
parent
9dde3ad354
commit
9d3755592c
@ -232,7 +232,7 @@ class IndexLogic extends Logic
|
||||
}
|
||||
}
|
||||
} else if ($v['mall_type'] == 1) {
|
||||
$v['shop'] = MallNewsShop::alias('mns')
|
||||
$v['shop'] = MallNewsShop::alias('mns')->with('files')
|
||||
->join('goods g', 'mns.shop_id = g.id')
|
||||
->field('mns.id, g.id as gid, g.name')
|
||||
->where(['mns.delete_time' => 0])->whereIn('mns.id', $v['mall_news_goods_id'])->select()->toArray();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user