From 6d5f4b66a5cac18fe68ff83663807b14884e6b22 Mon Sep 17 00:00:00 2001 From: cypas Date: Mon, 26 Feb 2024 17:30:59 +0800 Subject: [PATCH] update User-Agent --- src/constant.ts | 4 ++-- src/iksm.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/constant.ts b/src/constant.ts index f7a9c5a..c65b455 100644 --- a/src/constant.ts +++ b/src/constant.ts @@ -38,9 +38,9 @@ export const S3SI_LINK = "https://github.com/spacemeowx2/s3si.ts"; export const USERAGENT = `${AGENT_NAME}/${S3SI_VERSION} (${S3SI_LINK})`; export const DEFAULT_APP_USER_AGENT = - "Mozilla/5.0 (Linux; Android 11; Pixel 5) " + + "Mozilla/5.0 (Linux; Android 14; Pixel 7a) " + "AppleWebKit/537.36 (KHTML, like Gecko) " + - "Chrome/94.0.4606.61 Mobile Safari/537.36"; + "Chrome/120.0.6099.230 Mobile Safari/537.36"; export const SPLATNET3_URL = "https://api.lp1.av5ja.srv.nintendo.net"; export const SPLATNET3_ENDPOINT = "https://api.lp1.av5ja.srv.nintendo.net/api/graphql"; diff --git a/src/iksm.ts b/src/iksm.ts index f53db9f..c9b4b0d 100644 --- a/src/iksm.ts +++ b/src/iksm.ts @@ -140,7 +140,7 @@ export async function getGToken( "Content-Type": "application/json", "Accept": "application/json", "Connection": "Keep-Alive", - "User-Agent": "Dalvik/2.1.0 (Linux; U; Android 7.1.2)", + "User-Agent": "Dalvik/2.1.0 (Linux; U; Android 14; Pixel 7a Build/UQ1A.240105.004)", }, body: JSON.stringify({ "client_id": "71b963c1b7b6d119", @@ -194,7 +194,7 @@ export async function getGToken( "Content-Type": "application/json; charset=utf-8", "Connection": "Keep-Alive", "Accept-Encoding": "gzip", - "User-Agent": `com.nintendo.znca/${NSOAPP_VERSION}(Android/7.1.2)`, + "User-Agent": `com.nintendo.znca/${NSOAPP_VERSION}(Android/14)`, }, body: JSON.stringify({ parameter: { @@ -244,7 +244,7 @@ export async function getGToken( "Authorization": `Bearer ${idToken}`, "Content-Type": "application/json; charset=utf-8", "Accept-Encoding": "gzip", - "User-Agent": `com.nintendo.znca/${NSOAPP_VERSION}(Android/7.1.2)`, + "User-Agent": `com.nintendo.znca/${NSOAPP_VERSION}(Android/14)`, }, body: JSON.stringify({ parameter: {