From de842eefbbb402cd901caa158aec76d1458a54b3 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Tue, 15 Jul 2025 19:42:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=AF=86=E4=B8=8E=E9=9A=90=E8=97=8Flo?= =?UTF-8?q?gin=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/http/api/login/index.ts | 4 ++-- src/http/index.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/http/api/login/index.ts b/src/http/api/login/index.ts index 7b748bd..739c7f6 100644 --- a/src/http/api/login/index.ts +++ b/src/http/api/login/index.ts @@ -2,8 +2,8 @@ import { get, post } from '../../index' // 登录接口 - 调试使用 - 产线环境需注释 export const loginApi = (data: any) => { - // return false - return post('/auth/login', data) + return false + // return post('/auth/login', data) } // 获取用户信息 diff --git a/src/http/index.ts b/src/http/index.ts index 30ad1e7..95b8c8c 100644 --- a/src/http/index.ts +++ b/src/http/index.ts @@ -29,11 +29,11 @@ service.interceptors.request.use( (config) => { config.headers['Authorization'] = localStorage.getItem('tokenNew') // 入参是否加密 - config.headers['encryptRequest'] = 'false' + config.headers['encryptRequest'] = 'true' // 数据完整性校验 - config.headers['checkIntegrity'] = 'false' + config.headers['checkIntegrity'] = 'true' // 回参是否加密 - config.headers['encryptResponse'] = 'false' + config.headers['encryptResponse'] = 'true' // 对请求数据进行加密 if (config.method === 'get' && config.params) {