From e105d859388395a3dea1d6ece95dafa0609e3a82 Mon Sep 17 00:00:00 2001 From: jiangyong Date: Sun, 27 Aug 2023 16:40:12 +0800 Subject: [PATCH] User-Agent --- conf/haha.json | 2 +- worker/haha/haha_sync_order.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/haha.json b/conf/haha.json index 2c508ca..f9c5898 100644 --- a/conf/haha.json +++ b/conf/haha.json @@ -1,4 +1,4 @@ { - "token": "50ce0f30643185a4d0662c61245ea4a1", + "token": "711ed95e483af1e8d61705c9c894a5b2", "syncInterval": 10 } \ No newline at end of file diff --git a/worker/haha/haha_sync_order.go b/worker/haha/haha_sync_order.go index a783fc4..6b208e6 100644 --- a/worker/haha/haha_sync_order.go +++ b/worker/haha/haha_sync_order.go @@ -147,6 +147,7 @@ func (s *SyncOrder) httpPost(requestUrl string) ([]byte, error) { return nil, err } req.Header.Set("token", s.token) + req.Header.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36") resp, err := client.Do(req) if err != nil {