fix: 修复request()->scheme()方法不存在的问题
- ApprovalService.getDetailUrl: 改用 request()->isSecure() - AuthController.qrcodeLogin: 改用 request()->isSecure()
This commit is contained in:
@@ -502,7 +502,13 @@ class ApprovalService
|
||||
*/
|
||||
private function getDetailUrl(ApprovalOrder $order): string
|
||||
{
|
||||
$baseUrl = config('feishu_notification.base_url') ?? request()->scheme() . '://' . request()->host();
|
||||
$baseUrl = config('feishu_notification.base_url');
|
||||
|
||||
// 如果没有配置,使用当前请求构建
|
||||
if (!$baseUrl) {
|
||||
$scheme = request()->isSecure() ? 'https' : 'http';
|
||||
$baseUrl = $scheme . '://' . request()->host();
|
||||
}
|
||||
|
||||
// 统一使用审批详情页,不再跳转到具体业务模块的详情页
|
||||
return "{$baseUrl}/approval/detail/{$order->id}";
|
||||
|
||||
Reference in New Issue
Block a user