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) {