Skip to content

Commit

Permalink
修复 admin_url secure 始终不为null
Browse files Browse the repository at this point in the history
  • Loading branch information
wxfjamdc authored Nov 17, 2023
1 parent fc93239 commit acbf476
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
| If your page is going to be accessed via https, set it to `true`.
|
*/
'https' => env('ADMIN_HTTPS', false),
'https' => env('ADMIN_HTTPS'),

/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/Support/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function admin_url($path = '', $parameters = [], $secure = null)
return $path;
}

$secure = $secure ?: (config('admin.https') || config('admin.secure'));
$secure = $secure ?: config('admin.https') ?: config('admin.secure');

return url(admin_base_path($path), $parameters, $secure);
}
Expand Down

0 comments on commit acbf476

Please sign in to comment.