多显示商品单位

This commit is contained in:
彭桃 2023-02-27 11:52:22 +08:00
parent bcbc75d865
commit f3d7d5d79c

View File

@ -82,7 +82,7 @@ class Merchant extends BaseModel
{ {
$list = Product::where('mer_id', $this['mer_id']) $list = Product::where('mer_id', $this['mer_id'])
->where((new ProductDao())->productShow()) ->where((new ProductDao())->productShow())
->field('mer_id,product_id,store_name,image,price,is_show,status,is_gift_bag,is_good,cate_id') ->field('mer_id,product_id,store_name,image,price,is_show,status,is_gift_bag,is_good,cate_id,unit_name')
->order('sort DESC, create_time DESC') ->order('sort DESC, create_time DESC')
->limit(3) ->limit(3)
->select()->append(['show_svip_info']); ->select()->append(['show_svip_info']);