=【职业图谱】
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user