修改飞书消息配置
This commit is contained in:
@@ -9,11 +9,21 @@ class FeishuMessage
|
||||
|
||||
protected $app_id = 'cli_a6183b882cb8500d';
|
||||
protected $app_secret = 'VqYib48u4EtDIa6nG9qH3f0fYCA1bCvs';
|
||||
protected $state = 'hesu';
|
||||
protected $class = null;
|
||||
|
||||
public function __construct()
|
||||
public function __construct($options = [])
|
||||
{
|
||||
$this->class = new Feishu($this->app_id, $this->app_secret);
|
||||
if (isset($options['app_id']) && $options['app_id']) {
|
||||
$this->app_id = $options['app_id'];
|
||||
}
|
||||
if (isset($options['app_secret']) && $options['app_secret']) {
|
||||
$this->app_secret = $options['app_secret'];
|
||||
}
|
||||
if (isset($options['state']) && $options['state']) {
|
||||
$this->state = $options['state'];
|
||||
}
|
||||
$this->class = new Feishu($this->app_id, $this->app_secret, $this->state);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user