Esempio n. 1
0
 function __construct()
 {
     # 配置
     if (!($tConf = Yaf_Registry::get("config")->getui->default)) {
         exit('redis config error: default');
     }
     $tConf = $tConf->toArray();
     $this->tAppkey = $tConf['appkey'];
     $this->tAppid = $tConf['appid'];
     $this->tMastersecret = $tConf['mastersecret'];
     $this->tHost = $tConf['host'];
     $this->tTaskid = $tConf['taskid'];
     parent::__construct($this->tHost, $this->tAppkey, $this->tMastersecret);
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct(self::HOST, self::APPKEY, self::MASTERSECRET);
 }