From 4a587b16c8b54ef4488d271369e46a4897f873a5 Mon Sep 17 00:00:00 2001 From: zhangshilong <3131521901@qq.com> Date: Sat, 22 Jun 2024 22:51:29 +0800 Subject: [PATCH] fix: coolapk api error 'Unexpected end of JSON input' --- worker/src/providers/coolapk.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/worker/src/providers/coolapk.ts b/worker/src/providers/coolapk.ts index b60c71d..30c80e8 100644 --- a/worker/src/providers/coolapk.ts +++ b/worker/src/providers/coolapk.ts @@ -42,13 +42,9 @@ export default async function coolapkProvider( 'Dalvik/2.1.0 (Linux; U; Android 9; MI 8 SE MIUI/9.5.9) (#Build; Xiaomi; MI 8 SE; PKQ1.181121.001; 9) +CoolMarket/9.2.2-1905301', 'X-App-Id': 'com.coolapk.market', 'X-Requested-With': 'XMLHttpRequest', - 'X-Sdk-Int': '28', 'X-Sdk-Locale': 'zh-CN', - 'X-Api-Version': '9', - 'X-App-Version': '9.2.2', - 'X-App-Code': '1903501', 'X-App-Device': - 'QRTBCOgkUTgsTat9WYphFI7kWbvFWaYByO1YjOCdjOxAjOxEkOFJjODlDI7ATNxMjM5MTOxcjMwAjN0AyOxEjNwgDNxITM2kDMzcTOgsTZzkTZlJ2MwUDNhJ2MyYzM', + 'AyOzEjLG9VMx8FMx00QHBFI7ATMNN0RQByOPBFUPByOPBFUPByOgsDI7AyOzcjMBlmZYtWLshncvNmM3ZFdwMkMZFWMXlHWGRDTalTLoVFR', Host: 'api.coolapk.com', 'X-Dark-Mode': '0', 'X-App-Token': getAppToken(),