fix 修复WSKEY

This commit is contained in:
ZJY 2021-11-01 10:22:04 +08:00
parent ef0b649e52
commit 282ac5e335

View File

@ -23,7 +23,7 @@ type AutoGenerated struct {
}
func getSign() *AutoGenerated {
data, _ := httplib.Get("https://pan.smxy.xyz/sign").Header("user-agent", "ApiPOST Runtime +https://www.apipost.cn").Bytes()
data, _ := httplib.Get("https://pan.smxy.xyz/sign").SetUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36").Bytes()
t := &AutoGenerated{}
json.Unmarshal(data, t)
logs.Info(t.Sign)