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