fix: 移除硬编码的开发环境域名
- 使用动态域名配置(从 request 或 config 读取) - 添加 FEISHU_BASE_URL 环境变量支持 - 修复回调地址为当前站点域名 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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}";
|
||||
|
||||
Reference in New Issue
Block a user