From 21ef569f3bf341617d0404b0a1e5d9c5847ef135 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sun, 5 Nov 2023 16:31:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/product/CloudWarehouse.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()