diff --git a/app/goods/controller/GoodsController.php b/app/goods/controller/GoodsController.php index e311b31..119adc1 100644 --- a/app/goods/controller/GoodsController.php +++ b/app/goods/controller/GoodsController.php @@ -67,7 +67,7 @@ class GoodsController extends HomeBaseController { $id = request()->param('id'); $data = Db::name('zj_goods')->alias('g') - ->field('thumb,name,intro,price,content,more,cid as caid') + ->field('thumb,g.name,intro,price,content,more,cid as caid') ->join('zj_category c', 'c.id=g.cid') ->where(['id' => $id])->find(); $data['more'] = json_decode($data['more'], true);