Browse Source

优先使用tokenIndex

lifanagju_citu 7 months ago
parent
commit
2dc11ea8f9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/api/common/index.js

+ 4 - 0
src/api/common/index.js

@@ -76,6 +76,7 @@ export const getEnterpriseRegisterApply = async (email) => {
 // 退出登录
 export const logout = async () => {
   return await request.post({
+    tokenIndex: 2, // 使用求职token
     url: '/app-api/menduner/system/auth/logout'
   })
 }
@@ -83,6 +84,7 @@ export const logout = async () => {
 // 根据令牌退出登录
 export const logoutToken = async (token) => {
   return await request.post({
+    tokenIndex: 1, // 使用招聘token
     url: `/app-api/menduner/system/recruit/enterprise/auth/logout-token?token=${token}`
   })
 }
@@ -213,6 +215,7 @@ export const getEnterprisingUserInfo = async (params) => {
 // 招聘端-刷新令牌token
 export const enterpriseRefreshToken = async (refreshToken) => {
   return await request.post({
+    tokenIndex: 1, // 使用招聘token
     url: `/app-api/menduner/system/recruit/enterprise/auth/refresh-token?refreshToken=${refreshToken}`
   })
 }
@@ -220,6 +223,7 @@ export const enterpriseRefreshToken = async (refreshToken) => {
 // 求职端-刷新令牌token
 export const userRefreshToken = async (refreshToken) => {
   return await request.post({
+    tokenIndex: 2, // 使用求职token
     url: `/app-api/menduner/system/auth/refresh-token?refreshToken=${refreshToken}`
   })
 }