fix: 移除硬编码的开发环境域名

- 使用动态域名配置(从 request 或 config 读取)
- 添加 FEISHU_BASE_URL 环境变量支持
- 修复回调地址为当前站点域名

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-02-27 22:12:46 +08:00
parent 3b5107d4cd
commit 103da81a5c
4 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -502,7 +502,7 @@ class ApprovalService
*/
private function getDetailUrl(ApprovalOrder $order): string
{
$baseUrl = 'https://xsm.dev.hnxinyouhe.com';
$baseUrl = config('feishu_notification.base_url') ?? request()->scheme() . '://' . request()->host();
// 统一使用审批详情页,不再跳转到具体业务模块的详情页
return "{$baseUrl}/approval/detail/{$order->id}";