103da81a5c
- 使用动态域名配置(从 request 或 config 读取) - 添加 FEISHU_BASE_URL 环境变量支持 - 修复回调地址为当前站点域名 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
66 lines
1.4 KiB
PHP
66 lines
1.4 KiB
PHP
<?php
|
|
|
|
/**
|
|
* 飞书通知配置
|
|
*/
|
|
|
|
return [
|
|
// 基础 URL(用于生成回调地址)
|
|
'base_url' => env('FEISHU_BASE_URL') ?? null,
|
|
|
|
// 卡片模板配置
|
|
'templates' => [
|
|
// 审批通知模板
|
|
'approval' => [
|
|
'title_prefix' => '📋',
|
|
'template' => 'blue',
|
|
'show_fields' => true,
|
|
],
|
|
|
|
// 系统通知模板
|
|
'system' => [
|
|
'title_prefix' => '🔔',
|
|
'template' => 'gray',
|
|
],
|
|
|
|
// 提醒通知模板
|
|
'reminder' => [
|
|
'levels' => [
|
|
'info' => [
|
|
'icon' => '💡',
|
|
'template' => 'blue',
|
|
],
|
|
'warning' => [
|
|
'icon' => '⚠️',
|
|
'template' => 'orange',
|
|
],
|
|
'urgent' => [
|
|
'icon' => '🚨',
|
|
'template' => 'red',
|
|
],
|
|
],
|
|
],
|
|
],
|
|
|
|
// 消息发送配置
|
|
'send' => [
|
|
// 重试次数
|
|
'retry_times' => 3,
|
|
|
|
// 重试间隔(秒)
|
|
'retry_interval' => 1,
|
|
|
|
// 超时时间(秒)
|
|
'timeout' => 10,
|
|
],
|
|
|
|
// 日志配置
|
|
'logging' => [
|
|
// 是否记录日志
|
|
'enabled' => true,
|
|
|
|
// 日志级别
|
|
'level' => 'info',
|
|
],
|
|
];
|