正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -67,7 +67,7 @@ class GoodsController extends HomeBaseController | @@ -67,7 +67,7 @@ class GoodsController extends HomeBaseController | ||
67 | { | 67 | { |
68 | $id = request()->param('id'); | 68 | $id = request()->param('id'); |
69 | $data = Db::name('zj_goods')->alias('g') | 69 | $data = Db::name('zj_goods')->alias('g') |
70 | - ->field('thumb,name,intro,price,content,more,cid as caid') | 70 | + ->field('thumb,g.name,intro,price,content,more,cid as caid') |
71 | ->join('zj_category c', 'c.id=g.cid') | 71 | ->join('zj_category c', 'c.id=g.cid') |
72 | ->where(['id' => $id])->find(); | 72 | ->where(['id' => $id])->find(); |
73 | $data['more'] = json_decode($data['more'], true); | 73 | $data['more'] = json_decode($data['more'], true); |
-
请 注册 或 登录 后发表评论