feat: 去除系统免登录加密参数data

This commit is contained in:
TsMask
2024-11-25 18:55:16 +08:00
parent 1b28260680
commit 5d4a04ecf2
2 changed files with 3 additions and 2 deletions

View File

@@ -186,7 +186,7 @@ function beforeRequest(options: OptionsType): OptionsType | Promise<any> {
if (paramStr) {
const separator = options.url.includes('?') ? '&' : '?';
// 请求加密
if (options.crypto) {
if (options.crypto && token !== '== Not Login Auth ==') {
const data = encryptAES(JSON.stringify(paramStr), APP_DATA_API_KEY);
options.url += `${separator}data=${encodeURIComponent(data)}`;
} else {