=【职业图谱】

This commit is contained in:
2026-05-22 16:46:33 +08:00
parent 8578c96931
commit 9a09edf54c
3 changed files with 49 additions and 59 deletions

View File

@@ -26,7 +26,7 @@ const request = config => {
const isZytpApi = baseType === 'zytp'
// 从存储中获取微信登录的 token
const token = getToken()
if (token && !isToken && !isZytpApi) {
if (token && !isToken) {
// config.header['Authorization'] = 'Bearer ' + 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiJzeXNfdXNlcjoxIiwicm5TdHIiOiJhb0Y4RmJPQWJ6ZVA3NlpzaENyM0tPSEZTbU85U0ZhViIsInVzZXJJZCI6MX0.kPEDm7D8eVvFlwAiUiE57evWaCX5EcSEOq-LEYGTm9Q'
config.header['Authorization'] = 'Bearer ' + token
}
@@ -47,7 +47,7 @@ const request = config => {
requestUrl += (requestUrl.includes('?') ? '&' : '?') + url
}
}
// 如果是 getJobPathById 接口,打印完整 URL调试用生产环境可注释
// if (config.url && config.url.includes('getJobPathById')) {
// console.log('[请求URL] getJobPathById 完整请求URL:', requestUrl);
@@ -55,7 +55,7 @@ const request = config => {
// console.log('[请求URL] 接口路径:', config.url);
// console.log('[请求URL] 请求参数:', config.params);
// }
// 如果是 recommendJob 接口,打印详细信息(调试用,生产环境可注释)
// if (config.url && config.url.includes('recommendJob')) {
// console.log('[请求URL] recommendJob 完整请求URL:', requestUrl);
@@ -66,7 +66,7 @@ const request = config => {
// console.log('[请求URL] 请求数据 (data):', config.data);
// console.log('[请求URL] Content-Type:', config.header?.['content-type']);
// }
return new Promise((resolve, reject) => {
uni.request({
method: config.method || 'get',