chore: use config value for order pay timeout

This commit is contained in:
RockYang
2024-05-22 18:15:06 +08:00
parent b8e0d7760b
commit 061291cebb
2 changed files with 8 additions and 5 deletions

View File

@@ -1,12 +1,12 @@
package main
import (
"geekai/utils"
"fmt"
"net/url"
)
func main() {
text := "https://nk.img.r9it.com/chatgpt-plus/1712709360012445.png 请简单描述一下这幅图上的内容 "
imgURL := utils.ExtractImgURL(text)
fmt.Println(imgURL)
text := "https://nk.img.r9it.com/chatgpt-plus/1712709360012445.png"
parse, _ := url.Parse(text)
fmt.Println(fmt.Sprintf("%s://%s", parse.Scheme, parse.Host))
}