fix:修改 https
Build docker and publish / build (20.15.1) (push) Successful in 6m36s

This commit is contained in:
2026-01-24 00:41:02 -08:00
parent 1d81df6664
commit 5def1cf6d8
3 changed files with 40 additions and 56 deletions
+6
View File
@@ -7,6 +7,7 @@ import (
"fmt"
"io"
"net/http"
"strings"
"time"
)
@@ -153,5 +154,10 @@ func (c *Client) CreateInviteShortLink(ctx context.Context, baseURL, inviteCode,
return "", err
}
// 强制使用 HTTPS
if strings.HasPrefix(link.Link, "http://") {
link.Link = strings.Replace(link.Link, "http://", "https://", 1)
}
return link.Link, nil
}