From 8f89f7e7daed127ca311fe222f868cc7d75ca94d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E5=98=89?= <445241500@qq.com> Date: Wed, 22 May 2024 18:30:38 +0800 Subject: [PATCH] 12 --- app/api/controller/Square.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/api/controller/Square.php b/app/api/controller/Square.php index 3de50a25..c9ee1650 100644 --- a/app/api/controller/Square.php +++ b/app/api/controller/Square.php @@ -91,9 +91,11 @@ class Square extends Controller $list['data'][$kr]['avatar_url'] = $files ?: null; } if ($r['goods_id']) { + $modelgoods = new GoodsModel; $goods = $modelgoods->getDetails2($r['goods_id'])->toArray(); - $res[$kr]['goodsInfo'] = $goods; + //print_r($goods);die; + $list['data'][$kr]['goodsInfo'] = $goods; } } return $this->renderSuccess($list);