mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
parent
f8dfa8db2c
commit
bfea93312a
2
main.go
2
main.go
@ -632,7 +632,7 @@ func newClient() *client.QQClient {
|
||||
log.Infof("检测到 address.txt 文件. 将覆盖目标IP.")
|
||||
addr := global.ReadAddrFile("address.txt")
|
||||
if len(addr) > 0 {
|
||||
cli.SetCustomServer(addr)
|
||||
c.SetCustomServer(addr)
|
||||
}
|
||||
log.Infof("读取到 %v 个自定义地址.", len(addr))
|
||||
}
|
||||
|
@ -87,8 +87,7 @@ func RunLambdaClient(bot *coolq.CQBot, conf *config.LambdaServer) {
|
||||
case "scf": // tencent serverless function
|
||||
base := fmt.Sprintf("http://%s:%s/runtime/",
|
||||
os.Getenv("SCF_RUNTIME_API"),
|
||||
os.Getenv("SCF_RUNTIME_API_PORT"),
|
||||
)
|
||||
os.Getenv("SCF_RUNTIME_API_PORT"))
|
||||
cli.nextURL = base + "invocation/next"
|
||||
cli.responseURL = base + "invocation/response"
|
||||
post, err := http.Post(base+"init/ready", "", nil)
|
||||
|
Loading…
x
Reference in New Issue
Block a user