diff --git a/app/goods/controller/GoodsController.php b/app/goods/controller/GoodsController.php index 119adc1..137a672 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,g.name,intro,price,content,more,cid as caid') + ->field('thumb,g.name,g.intro,g.price,g.content,g.more,c.cid as caid') ->join('zj_category c', 'c.id=g.cid') ->where(['id' => $id])->find(); $data['more'] = json_decode($data['more'], true);