diff --git a/app/admin/controller/RetailDescribe.php b/app/admin/controller/RetailDescribe.php index 820e4989..3efe207b 100644 --- a/app/admin/controller/RetailDescribe.php +++ b/app/admin/controller/RetailDescribe.php @@ -20,7 +20,10 @@ class RetailDescribe extends Controller { $model = new retDescribeModel; $where = $this->request->get(); - $list = $model->getList($where); + $list = $model->getList($where)->toArray(); + foreach($list['data'] as &$item){ + $item['plate_name'] = RetailDescribeEnum::$version[$item['plate_id']]??''; + } return $this->renderSuccess(compact('list')); } @@ -49,7 +52,11 @@ class RetailDescribe extends Controller } public function getPlate(){ - $list = RetailDescribeEnum::$version; + $list1 = RetailDescribeEnum::$version; + $list = []; + foreach($list1 as $key => $value){ + $list[] = ['id' => $key, 'name' => $value]; + }; return $this->renderSuccess(compact('list')); } diff --git a/app/api/controller/Retail.php b/app/api/controller/Retail.php index 70fa79e2..319a5de3 100644 --- a/app/api/controller/Retail.php +++ b/app/api/controller/Retail.php @@ -100,39 +100,18 @@ class Retail extends Controller
10-促进本地商家联盟数字化平台化发展
'; - $list['wholesale'] = '- 1-采购代发商家实名注册认证,在线直接下单 -
-- 2-认证商家、服务商数字化管理 -
-- 3-所有订单,发货记录,物流状态实时查询 -
-- 4-所有调货记录在线实时查看 -
-- 5-审单实时做电话、地址校验比对,避免平台单 -
-- 6-供应链资源快速对接 -
-- 7-商品数据快速上架,商城之间商品数据实时传输 -
-- 8-商品市场价实时自动更新 -
-- 9-货款到账时间支持当天或隔天,支付费率低 -
-- 至千分之2.x -
-- 10-供应商、服务商入驻,销售和推广效益提升 -
'; + $list['wholesale'] = '1-采购代发商家实名注册认证,在线直接下单
+2-认证商家、服务商数字化管理
+3-所有订单,发货记录,物流状态实时查询
+4-所有调货记录在线实时查看
+5-审单实时做电话、地址校验比对,避免平台单
+6-供应链资源快速对接
+7-商品数据快速上架,商城之间商品数据实时传输
+8-商品市场价实时自动更新
+9-货款到账时间支持当天或隔天,支付费率低 至千分之 2.x
+10-供应商、服务商入驻,销售和推广效益提升
+