From 022c16c7313465ace553e12e626fd9582f311c7e Mon Sep 17 00:00:00 2001 From: yzqzss Date: Fri, 5 Jul 2024 01:22:18 +0800 Subject: [PATCH] chore: clean --- pkg/huashijie_api.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/pkg/huashijie_api.go b/pkg/huashijie_api.go index db1fc4f..daca275 100644 --- a/pkg/huashijie_api.go +++ b/pkg/huashijie_api.go @@ -88,41 +88,28 @@ func GetWorkDetailResponse(client http.Client, work_id string) ([]byte, int) { Logger.Println("USERID:", visitorId, "token:", token, "left", time.Until(cur_fake_user_left)) } - // q := req.URL.Query() p := "" - // q.Add("visitorId", "-1") p += "visitorId=" + visitorId - // q.Add("workId", work_id) p += "&workId=" + work_id - // q.Add("cur_user_id", "-1") p += "&cur_user_id=" + visitorId - // q.Add("platform", "android") p += "&platform=android" os_version := rand.Intn(34-28) + 28 - // q.Add("os_version", fmt.Sprintf("%d", os_version)) p += fmt.Sprintf("&os_version=%d", os_version) if os.Getenv("HSJ_ENDPOINT") == "pandapaint" { - // q.Add("version_code", "168") p += "&version_code=168" } else { - // q.Add("version_code", "241") p += "&version_code=241" } - // q.Add("device_brand", "xiaomi") p += "&device_brand=xiaomi" device_model := XIAOMI_MODELS[rand.Intn(len(XIAOMI_MODELS))] - // q.Add("device_model", device_model) p += "&device_model=" + device_model - // q.Add("token", "") p += "&token=" + token if os.Getenv("HSJ_ENDPOINT") == "pandapaint" { - // q.Add("channel", "Panda.main") p += "&channel=Panda.main" } else { - // q.Add("channel", "main") p += "&channel=main" }