/** * 获得redis实例 * @return redis */ private static function get_redis() { if (is_null(self::$redis)) { $cfg = APF::get_instance()->get_config('redis', 'msg'); $redis = new Redis(); $redis->connect($cfg['host'], $cfg['port'], $cfg['timeout']); self::$redis = $redis; } return self::$redis; }
public function handle_request_internal() { //$a = Bll_Commtype_Api::getInstance()->search(1,200); // $a = Bll_Commtype_Api::getInfoByTypeIdOrCode(array(200,201),0,2); ///print_r($a);exit; $a = Bll_Commtype_Api::getAreaInfoByCityId(11); print_r($a); $tmp = Model_City_TypeCode::get_area_block(200); echo $tmp->typeName; phpinfo(); die; $hzbrokerId = 147468; $r = Bll_Hammer::send_gift($hzbrokerId); echo "<pre>"; var_dump($r); die; $ret = array('status' => 'ok', 'data' => array('num1' => 10000, 'num2' => 20000)); $this->output($ret); die; }