From 282ac5e335db49a5bce9ac3073fb1e9d4567877e Mon Sep 17 00:00:00 2001 From: ZJY <764763903@qq.com> Date: Mon, 1 Nov 2021 10:22:04 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8DWSKEY?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/wck.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/wck.go b/models/wck.go index 57252c2..f7700d3 100644 --- a/models/wck.go +++ b/models/wck.go @@ -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)