示例#1
0
 public function __construct()
 {
     parent::__construct();
     // 将常量作为默认值放入参数
     foreach (['appid' => 'APP_ID', 'appSecret' => 'APP_SECRET', 'encodingAesKey' => 'ENCODING_AES_KEY'] as $k => $v) {
         empty($this->{$k}) && ($this->{$k} = constant($v));
     }
     $this->Wechat = new MpWechat($this->appid, $this->appSecret, $this->encodingAesKey);
 }
示例#2
0
文件: Min.php 项目: enozoom/es
 public function __construct()
 {
     parent::__construct();
     $this->cache_dir = APPPATH . 'cache/cssjsless/';
     $this->def_dir = './theme/' . $this->getConfig('theme_path') . '/';
     // 非前台地址
     if (preg_match('/([^-]+)-/', $this->getConfigs('cmdq')->q, $matches)) {
         if (is_dir($dir = APPPATH . 'data/' . $matches[1])) {
             $this->def_dir = $dir . '/';
         }
     }
 }
示例#3
0
 public function __construct()
 {
     parent::__construct();
     $this->Wechat = new QyWechat($this->EncodingAESKey, $this->CorpID, $this->Secret, $this->Token);
     $this->Wechat->isWechat();
 }