作者 lihan
1 个管道 的构建 通过 耗费 0 秒

修改bug阶段

@@ -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);