opt: enable use cdn url for mj-plus

This commit is contained in:
RockYang
2024-01-28 21:56:25 +08:00
parent b4501557c9
commit 0ef6955f96
17 changed files with 193 additions and 158 deletions

View File

@@ -2,11 +2,10 @@ package main
import (
"fmt"
"strings"
"net/url"
)
func main() {
str := "7151109597841850368 一个漂亮的中国女孩,手上拿着一桶爆米花,脸上带着迷人的微笑,电影效果"
index := strings.Index(str, " ")
fmt.Println(str[index+1:])
u, err := url.Parse("https://api.chat-plus.net/mj/image/1706368258238514?aaa=bbb")
fmt.Println(u.Path, u.RawQuery, err)
}