2.23 获取手机验证码接口修改
This commit is contained in:
@ -60,15 +60,15 @@ export async function ZjfakeAccountLogin(params: LoginParamsType) {
|
||||
}
|
||||
|
||||
// 专家人脸登录
|
||||
export async function ZjfakeFaceLogin(params: FaceLoginParamsType){
|
||||
export async function ZjfakeFaceLogin(params: FaceLoginParamsType) {
|
||||
var formData = new FormData();
|
||||
formData.append('idNo', params.userName);
|
||||
formData.append('multipartFiles', params.multipartFiles, 'upload_face.jpeg');
|
||||
return request('/api/core-service-ebtp-userinfo/outer/v1/ebtp/face/faceCompare', {
|
||||
method: 'POST',
|
||||
requestType: 'form',
|
||||
mode:'cors',
|
||||
body:formData
|
||||
mode: 'cors',
|
||||
body: formData
|
||||
});
|
||||
}
|
||||
|
||||
@ -116,7 +116,7 @@ export async function getPassword(params: any) { // 获取后台验证码接口
|
||||
* @returns
|
||||
*/
|
||||
export async function getFakeCaptcha(params: any) {
|
||||
return request('/api/notification/v1/notification/savaSmsByPhone', {
|
||||
return request('/api/notification/v1/notification/savaSmsByPhoneNew', {
|
||||
method: 'POST',
|
||||
data: {
|
||||
strmobileNumber: params
|
||||
|
@ -78,14 +78,16 @@ request.interceptors.request.use(async (url, options) => {
|
||||
url == '/api/core-service-ebtp-userinfo/v1/userpassword/validatePassword' ||
|
||||
url.startsWith('/api/notification') ||
|
||||
url == '/api/core-service-ebtp-userinfo/outer/v1/ebtp/face/faceCompare' ||
|
||||
url == '/api/core-service-ebtp-userinfo/outer/v1/ebtp/face/rgbArray2Base64'
|
||||
url == '/api/core-service-ebtp-userinfo/outer/v1/ebtp/face/rgbArray2Base64' ||
|
||||
url == '/api/notification/v1/notification/savaSmsByPhoneNew'
|
||||
) {
|
||||
headers = {
|
||||
...options.headers,
|
||||
};
|
||||
url.startsWith('/api/api/mall-prox') ||
|
||||
url.startsWith('/api/api/mall-expe') ||
|
||||
url == '/api/core-service-ebtp-userinfo/v1/userpassword/validatePassword'
|
||||
url == '/api/core-service-ebtp-userinfo/v1/userpassword/validatePassword' ||
|
||||
url == '/api/notification/v1/notification/savaSmsByPhoneNew'
|
||||
? (options.credentials = 'omit')
|
||||
: null;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user