合并分支 'dev_api_change' 到 'master'
登录相关接口修改 查看合并请求 coscoshipping/fe_service_ebtp_frontend!2
This commit is contained in:
@ -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',
|
||||||
|
@ -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
|
||||||
});
|
});
|
||||||
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -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,
|
||||||
});
|
});
|
||||||
|
@ -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
|
||||||
});
|
});
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
Reference in New Issue
Block a user