fix(health): 修复迁移外键表名引用 + 公开轮播图签名 URL 路径拼接
This commit is contained in:
@@ -307,10 +307,11 @@ pub async fn list_public_banners(
|
||||
|
||||
let (token, expires) =
|
||||
generate_signed_url(&media.storage_path, &signing_secret(), 3600);
|
||||
let clean_path = media.storage_path.trim_start_matches("./");
|
||||
let image_url = format!(
|
||||
"{}{}?expires={}&token={}",
|
||||
"{}/{}?expires={}&token={}",
|
||||
base_url.trim_end_matches('/'),
|
||||
media.storage_path,
|
||||
clean_path,
|
||||
expires,
|
||||
token
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user