12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- /**
- * Created by PhpStorm.
- * User: stanley-king
- * Date: 16/9/7
- * Time: 下午3:52
- */
- defined('InShopNC') or exit('Access Invalid!');
- require_once(BASE_ROOT_PATH . '/helper/goods_helper.php');
- require_once(BASE_ROOT_PATH . '/helper/special_helper.php');
- require_once(BASE_ROOT_PATH . '/helper/activity_helper.php');
- class specialControl extends mobileHomeControl
- {
- public function __construct() {
- parent::__construct();
- }
- 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)
- {
- $specials = special_manager::instance()->special($special_id,$goods_ids);
- if (!empty($goods_ids))
- {
- $helper = new goods_helper();
- $goodsex = $helper->online_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));
- }
- }
- }
|