public function __construct() { parent::__construct(); if (!isset($_GET['uid']) || $_GET['uid'] <= 0) { output_error("缺少用户id参数"); die; } //TODO 查找uid是否存在,不存在则输出错误信息 $this->member_id = $_GET['uid']; }
public function __construct() { parent::__construct(); /** * 验证圈子是否开启 */ if (C('circle_isuse') != '1') { @header('location: ' . SHOP_SITE_URL); die; } }
public function __construct() { parent::__construct(); $type = $_GET['type']; if ($type == "0") { // 转让 交易需通过审核 $this->where = array('goods_show' => 1, 'goods_status' => 1, 'goods_leixing' => 0); } elseif ($type == "1") { // 需求 $this->where = array('goods_show' => 1, 'goods_status' => 1, 'goods_leixing' => 1); } else { // 默认获取全部 $this->where = array('goods_show' => 1, 'goods_status' => 1); } }
public function __construct() { parent::__construct(); $type = $_GET['type']; if ($type == "0") { // 转让 需求需通过审核 $this->where = array('demand_status' => 1, 'demand_type' => 0); } elseif ($type == "1") { // 需求 $this->where = array('demand_status' => 1, 'demand_type' => 1); } else { // 默认获取全部 $this->where = array('demand_status' => 1); } }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->payment_code = $_GET['payment_code']; }