Exemple #1
0
 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();
 }
Exemple #2
0
 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));
 }
Exemple #3
0
 public function getTextOfVoice()
 {
     $username = $this->getData('username');
     exit(iredis::getInstance()->getWeixinVoice($username));
 }