登录相关接口修改

This commit is contained in:
lix
2025-06-12 17:19:44 +08:00
parent 1b8ef1b5e2
commit f3db585804
7 changed files with 17 additions and 17 deletions

View File

@ -13,10 +13,10 @@ export default {
}, },
}, },
UAT: { UAT: {
'/api/core-service-ebtp-userinfo': { '/api/sys-manager-ebtp-project': {
target: 'http://localhost:18023', target: 'http://localhost:18023',
changeOrigin: true, changeOrigin: true,
pathRewrite: { '/api/core-service-ebtp-userinfo': '' }, pathRewrite: { '/api/sys-manager-ebtp-project': '' },
}, },
'/api/biz-service-ebtp-bid': { '/api/biz-service-ebtp-bid': {
target: 'http://localhost:18003', target: 'http://localhost:18003',

View File

@ -9,7 +9,7 @@ export async function getMenu(params: any) {
} }
export async function fgetUserMsg(params: any) { export async function fgetUserMsg(params: any) {
return request('/api/core-service-ebtp-userinfo/v1/userinfo/get', { return request('/api/sys-manager-ebtp-project/v1/userinfo/get', {
method: 'GET', method: 'GET',
headers: { 'Authorization': params }, headers: { 'Authorization': params },
data: params, data: params,
@ -17,7 +17,7 @@ export async function fgetUserMsg(params: any) {
} }
export async function getLogout() { // 退出登录,注销 export async function getLogout() { // 退出登录,注销
return request('/api/core-service-ebtp-userinfo/v1/userinfo/logout', { return request('/api/sys-manager-ebtp-project/v1/userinfo/logout', {
method: 'get', method: 'get',
// params // params
}); });

View File

@ -6,7 +6,7 @@ import request from '@/utils/request';
* @returns * @returns
*/ */
export async function fgetUserMsg(params: any) { export async function fgetUserMsg(params: any) {
return request('/api/core-service-ebtp-userinfo/v1/userinfo/get', { return request('/api/sys-manager-ebtp-project/v1/userinfo/get', {
method: 'GET', method: 'GET',
headers: { 'Authorization': params }, headers: { 'Authorization': params },
data: params, data: params,
@ -18,7 +18,7 @@ export async function fgetUserMsg(params: any) {
* @returns * @returns
*/ */
export async function getTokenByCode(params: any) { export async function getTokenByCode(params: any) {
return request('/api/core-service-ebtp-userinfo/v1/auth/oauth/token', { return request('/api/sys-manager-ebtp-project/v1/auth/oauth/token', {
method: 'POST', method: 'POST',
params: params, params: params,
}); });
@ -70,7 +70,7 @@ export async function getProjectById(id?: any) {
* 获取跳转2.0的URL * 获取跳转2.0的URL
*/ */
export async function getToSecondUrl() { export async function getToSecondUrl() {
return request('/api/core-service-ebtp-userinfo/zglt/v1/getUrl'); return request('/api/sys-manager-ebtp-project/zglt/v1/getUrl');
} }

View File

@ -20,7 +20,7 @@ export async function rgbToBase64(params: any) {
type: 'pixel', type: 'pixel',
rgb: params.image rgb: params.image
}); });
return request('/api/core-service-ebtp-userinfo/outer/v1/ebtp/face/rgbArray2Base64', { return request('/api/sys-manager-ebtp-project/outer/v1/ebtp/face/rgbArray2Base64', {
method: 'post', method: 'post',
body: _body, body: _body,
}); });

View File

@ -64,7 +64,7 @@ export async function ZjfakeFaceLogin(params: FaceLoginParamsType) {
var formData = new FormData(); var formData = new FormData();
formData.append('idNo', params.userName); formData.append('idNo', params.userName);
formData.append('multipartFiles', params.multipartFiles, 'upload_face.jpeg'); formData.append('multipartFiles', params.multipartFiles, 'upload_face.jpeg');
return request('/api/core-service-ebtp-userinfo/outer/v1/ebtp/face/faceCompare', { return request('/api/sys-manager-ebtp-project/outer/v1/ebtp/face/faceCompare', {
method: 'POST', method: 'POST',
requestType: 'form', requestType: 'form',
mode: 'cors', mode: 'cors',
@ -96,7 +96,7 @@ export async function CloudfakeAccountLogin(params: LoginParamsType) {
* @returns * @returns
*/ */
export async function refreshTokenApi(params: any) { export async function refreshTokenApi(params: any) {
return request('/api/core-service-ebtp-userinfo/v1/auth/oauth/token', { return request('/api/sys-manager-ebtp-project/v1/auth/oauth/token', {
method: 'POST', method: 'POST',
requestType: 'form', requestType: 'form',
data: params, data: params,
@ -104,7 +104,7 @@ export async function refreshTokenApi(params: any) {
} }
export async function getPassword(params: any) { // 获取后台验证码接口 export async function getPassword(params: any) { // 获取后台验证码接口
return request('/api/core-service-ebtp-userinfo/v1/userpassword/validatePassword', { return request('/api/sys-manager-ebtp-project/v1/userpassword/validatePassword', {
method: 'POST', method: 'POST',
params: params params: params
}); });
@ -128,7 +128,7 @@ export async function getFakeCaptcha(params: any) {
* @returns * @returns
*/ */
export async function logoutTokenApi() { export async function logoutTokenApi() {
return request('/api/core-service-ebtp-userinfo/v1/userinfo/logout', { return request('/api/sys-manager-ebtp-project/v1/userinfo/logout', {
method: 'GET', method: 'GET',
// params: params // params: params
}); });

View File

@ -22,7 +22,7 @@ export async function getSupplierUserByUserInfo(params: any) {
/* /*
*暂无url *暂无url
* */ * */
return request('/api/core-service-ebtp-userinfo/v1/userinfo/findUserCountListBySupplierCodePage', { return request('/api/sys-manager-ebtp-project/v1/userinfo/findUserCountListBySupplierCodePage', {
method: 'post', method: 'post',
data: { data: {
...params ...params

View File

@ -75,10 +75,10 @@ request.interceptors.request.use(async (url, options) => {
url.startsWith('/api/auth/reloadToken') || url.startsWith('/api/auth/reloadToken') ||
url.startsWith('/api/auth/reloadPartnerToken') || url.startsWith('/api/auth/reloadPartnerToken') ||
url.startsWith('/api/api/mall-expe') || url.startsWith('/api/api/mall-expe') ||
url == '/api/core-service-ebtp-userinfo/v1/userpassword/validatePassword' || url == '/api/sys-manager-ebtp-project/v1/userpassword/validatePassword' ||
url.startsWith('/api/notification') || url.startsWith('/api/notification') ||
url == '/api/core-service-ebtp-userinfo/outer/v1/ebtp/face/faceCompare' || url == '/api/sys-manager-ebtp-project/outer/v1/ebtp/face/faceCompare' ||
url == '/api/core-service-ebtp-userinfo/outer/v1/ebtp/face/rgbArray2Base64' || url == '/api/sys-manager-ebtp-project/outer/v1/ebtp/face/rgbArray2Base64' ||
url == '/api/notification/v1/notification/savaSmsByPhoneNew' url == '/api/notification/v1/notification/savaSmsByPhoneNew'
) { ) {
headers = { headers = {
@ -86,7 +86,7 @@ request.interceptors.request.use(async (url, options) => {
}; };
url.startsWith('/api/api/mall-prox') || url.startsWith('/api/api/mall-prox') ||
url.startsWith('/api/api/mall-expe') || url.startsWith('/api/api/mall-expe') ||
url == '/api/core-service-ebtp-userinfo/v1/userpassword/validatePassword' || url == '/api/sys-manager-ebtp-project/v1/userpassword/validatePassword' ||
url == '/api/notification/v1/notification/savaSmsByPhoneNew' url == '/api/notification/v1/notification/savaSmsByPhoneNew'
? (options.credentials = 'omit') ? (options.credentials = 'omit')
: null; : null;