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

修改bug阶段

... ... @@ -69,7 +69,7 @@ class GoodsController extends HomeBaseController
$data = Db::name('zj_goods')->alias('g')
->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();
->where(['g.id' => $id])->find();
$data['more'] = json_decode($data['more'], true);
foreach ($data['more'] as $k => $v) {
$data['photo'][$k]['photo'] = cmf_get_image_url($v['url']);
... ...