From d8d2ff7e4e7c50c60ff3356d07747bc1dc895b46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 10 Jun 2024 19:00:05 +0800 Subject: [PATCH] chore:appid --- docs/develop/Image.NTAndroid.md | 48 +++++++++++++++++++++++++++++++++ src/common/utils/QQBasicInfo.ts | 2 +- 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 docs/develop/Image.NTAndroid.md diff --git a/docs/develop/Image.NTAndroid.md b/docs/develop/Image.NTAndroid.md new file mode 100644 index 00000000..4a77cda2 --- /dev/null +++ b/docs/develop/Image.NTAndroid.md @@ -0,0 +1,48 @@ + public static final int C2C_PIC_DOWNLOAD = 1004; + public static final String C2C_PIC_DOWNLOAD_DOMAIN = "c2cpicdw.qpic.cn"; + public static final String C2C_PIC_DOWNLOAD_QUIC_DOMAIN = "c2cpicdw.quic.qpic.cn"; + public static final int FLAG_NOT_UPLOAD = 3; + public static final int FLAG_UPLOADINFO_ERROR = 4; + public static final int GROUP_PIC_DOWNLOAD = 1000; + public static final String GROUP_PIC_DOWNLOAD_DOMAIN = "gchat.qpic.cn"; + public static final String GROUP_PIC_DOWNLOAD_QUIC_DOMAIN = "gchat.quic.qpic.cn"; + public static final String GUILD_PIC_DOWNLOAD_DOMAIN = "gchat.qpic.cn/qmeetpic"; + public static final boolean NEW_STORE_FLAG = true; + public static final String PTT_VIDEO_DOWNLOAD_DOMAIN = "grouptalk.c2c.qq.com"; + + protected static final int AVIF_DECODE_EXCEPTION = 4; + protected static final int AVIF_DECODE_FAIL = 1; + protected static final int AVIF_DECODE_FAIL_SO_FAIL = 2; + protected static final int AVIF_DECODE_FAIL_UNKNOWN = 6; + protected static final int AVIF_DECODE_FILETYPE_ERROR = 5; + protected static final int AVIF_DECODE_OOM = 3; + protected static final int AVIF_DECODE_RENAME_FAIL = 7; + protected static final int AVIF_DECODE_SUC = 0; + public static final String AVIF_FILE_SUFFIX = ".avif"; + public static final int AVIF_REQ_APPRUNTIME_NULL = 12; + public static final int AVIF_REQ_CODEC_UNSURPPORT = 5; + protected static final int AVIF_REQ_DENSITY_UNSURPPORT = 10; + protected static final int AVIF_REQ_FLASH_PHOTO = 9; + protected static final int AVIF_REQ_HAS_TMP_AVIF = 7; + protected static final int AVIF_REQ_INVALID_MSG_RECORD = 2; + protected static final int AVIF_REQ_IS_RAW_PHOTO = 3; + protected static final int AVIF_REQ_OUTPUTSTREAM_UNSURPPORT = 11; + protected static final int AVIF_REQ_OVERSIZE = 6; + protected static final int AVIF_REQ_RETRY = 1; + public static final int AVIF_REQ_SO_DOWNLOAD_FAILED = 8; + protected static final int AVIF_REQ_SUC = 0; + public static final int AVIF_REQ_SWITCH_CLOSE = 4; + public static final String C2C_PIC_DOWNLOAD_ERROR_CODE = "C2CPicDownloadErrorCode"; + static final int DOWNLOAD_ST_COMPLETE = 1; + static final int DOWNLOAD_ST_HEAD = 2; + static final int DOWNLOAD_ST_LEFT = 4; + static final int DOWNLOAD_ST_PART = 3; + private static final int ENCRYPT_APPID = 1600000226; + public static final String GROUP_PIC_DOWNLOAD_ERROR_CODE = "GroupPicDownloadErrorCode"; + public static final String KEY_PIC_DOWNLOAD_ERROR_CODE = "param_detail_code"; + protected static final int QUIC_FAIL_IP_LIST_EMPTY = 1; + protected static final int QUIC_FAIL_REQUEST_HTTPS = 3; + protected static final int QUIC_FAIL_REQUEST_QUIC = 2; + protected static final int QUIC_FAIL_SO_LOAD = 4; + public static final String REPORT_TAG_DIRECT_DOWNLOAD_FAIL = "report_direct_download_fail"; + public static final String REQ_PARAM_AVIF = "tp=avif"; diff --git a/src/common/utils/QQBasicInfo.ts b/src/common/utils/QQBasicInfo.ts index 0a0f6157..d943b6d1 100644 --- a/src/common/utils/QQBasicInfo.ts +++ b/src/common/utils/QQBasicInfo.ts @@ -65,7 +65,7 @@ export const qqPkgInfo: QQPkgInfo = JSON.parse(fs.readFileSync(pkgInfoPath).toSt // platVer: '10.0.26100', // clientVer: '9.9.9-23159', -let _appid: string = '537213803'; // 默认为 Windows 平台的 appid +let _appid: string = '537216417'; // 默认为 Windows 平台的 appid if (systemPlatform === 'linux') { _appid = '537213827'; }