예제 #1
0
파일: QQ.php 프로젝트: zuozuoba/zpf
 public function __construct($callback_url, $cookierand)
 {
     $config = Config::$qq;
     $this->appid = $config['appid'];
     $this->appkey = $config['appkey'];
     $this->scope = $config['scope'];
     $this->state_pre = $config['state_pre'];
     $this->callback = $callback_url ? $callback_url : $config['callback_url'];
     $this->cookierand = $cookierand;
     $this->objRedis = iredis::getInstance();
 }
예제 #2
0
파일: index.php 프로젝트: zuozuoba/zpf
 public function getAnhao()
 {
     $anhao = $this->G('anhao');
     $coords = $this->G('coords');
     $objRdis = iredis::getInstance();
     $objRdis->ihset($anhao, $this->cookierand, $coords);
     $arrCoords = $objRdis->hvals($anhao);
     exit(json_encode($arrCoords));
 }
예제 #3
0
파일: WeChat.php 프로젝트: zuozuoba/zpf
 public function getTextOfVoice()
 {
     $username = $this->getData('username');
     exit(iredis::getInstance()->getWeixinVoice($username));
 }