mb_special = Model('mb_special'); } public function indexOp() { $special_id = intval($_GET['special_id']); if($special_id <= 0) { return self::outerr(errcode::ErrParamter); } $special_id = intval($_GET['special_id']); $ret = $this->get_special($special_id); self::outsuccess($ret); } protected function get_special($special_id) { $helper = new special_helper($special_id); $specials = $helper->format($goods_ids); if (!empty($goods_ids)) { $helper = new goods_helper(); $goodsex = $helper->get_summary($goods_ids, $related_goods); return array('special_list' => $specials, 'summary' => $goodsex['summary'], 'groupbuy' => $goodsex['groupbuy'], 'limitime' => $goodsex['limitime'], 'bundling' => $goodsex['bundling'], 'mobile_page' => mobile_page(1)); } else { return array('special_list' => $specials, 'summary' => array(), 'groupbuy' => array(), 'limitime' => array(), 'bundling' => array(), 'mobile_page' => mobile_page(1)); } } }