getGoodsInfoByID($goods_id, 'goods_commonid'); $commonid = intval($info['goods_commonid']); } if ($commonid > 0) { $items = Model()->table('goods_common')->field('goods_body')->where(array('goods_commonid' => $commonid))->select(); if (!empty($items) && count($items) > 0) { Tpl::output('goods_body', $items[0]['goods_body']); } } Tpl::showpage('goods_detail'); } }