mirror of
https://github.com/certd/certd.git
synced 2026-10-12 23:31:17 +08:00
chore(scripts): 为release接口url添加v前缀
修正获取指定版本发布信息的接口地址,补上版本号前的v前缀,确保接口调用正确
This commit is contained in:
@@ -32,7 +32,7 @@ async function request(method, url, options = {}) {
|
||||
|
||||
async function main() {
|
||||
try {
|
||||
const releaseUrl = apiBase + "/releases/" + encodeURIComponent(version);
|
||||
const releaseUrl = apiBase + "/releases/v" + encodeURIComponent(version);
|
||||
const release = await request("GET", releaseUrl, {
|
||||
params: { access_token: token },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user