This commit is contained in:
cdle
2021-10-02 20:46:02 +08:00
parent 9f74bbc4ff
commit 52b562d3a8
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -11,6 +11,9 @@ func init() {
var Tail = "--来自sillyGirl,傻妞技术交流群654346133。"
func RunServer() {
if sillyGirl.GetBool("enable_http_server", false) == false {
return
}
Server.GET("/", func(c *gin.Context) {
c.String(200, Tail)
})
+1 -1
View File
@@ -41,7 +41,7 @@ type Carrier struct {
func init() {
Config = &QingLong{}
Config.Host = qinglong.Get("host")
Config.Host = qinglong.Get("host", "http://127.0.0.1:5700")
Config.ClientID = qinglong.Get("client_id")
Config.ClientSecret = qinglong.Get("client_secret")
if Config.Host == "" {