修改飞书消息配置

This commit is contained in:
mzl
2025-07-29 15:10:44 +08:00
parent 1a03b07f45
commit 0ad2bf162c
3 changed files with 19 additions and 4 deletions
+12 -2
View File
@@ -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);
}
/**