diff --git a/app/controller/api/store/product/CloudWarehouse.php b/app/controller/api/store/product/CloudWarehouse.php index dd0ce4e4..3dc90a61 100644 --- a/app/controller/api/store/product/CloudWarehouse.php +++ b/app/controller/api/store/product/CloudWarehouse.php @@ -114,7 +114,8 @@ class CloudWarehouse extends BaseController $count = Db::name('cloud_product')->where('street_code', $street_code)->where('status', 1)->count(); $select = Db::name('store_product')->whereIn('product_id', $cloud_product)->where($where) ->withAttr('merchant', function ($value, $data) { - return Db::name('merchant')->where('mer_id', $data['mer_id'])->field('mer_id,mer_name')->find(); + $find= Db::name('merchant')->where('mer_id', $data['mer_id'])->field('mer_id,mer_name')->find(); + return $find; }) ->withAttr('sku', function ($value, $data) { $find = Db::name('store_product_attr_value')->where('mer_id', $data['mer_id'])->where('product_id', $data['product_id'])->find(); @@ -126,7 +127,7 @@ class CloudWarehouse extends BaseController } /** - * 指定类型的云仓商品列表 + * 镇级供应链列表 * @return mixed */ public function town()