2.23 获取手机验证码接口修改

This commit is contained in:
jl-zhoujl2
2023-02-23 09:19:12 +08:00
parent bfc20f2dc7
commit 190eeb3321
2 changed files with 8 additions and 6 deletions

View File

@ -116,7 +116,7 @@ export async function getPassword(params: any) { // 获取后台验证码接口
* @returns * @returns
*/ */
export async function getFakeCaptcha(params: any) { export async function getFakeCaptcha(params: any) {
return request('/api/notification/v1/notification/savaSmsByPhone', { return request('/api/notification/v1/notification/savaSmsByPhoneNew', {
method: 'POST', method: 'POST',
data: { data: {
strmobileNumber: params strmobileNumber: params

View File

@ -78,14 +78,16 @@ request.interceptors.request.use(async (url, options) => {
url == '/api/core-service-ebtp-userinfo/v1/userpassword/validatePassword' || url == '/api/core-service-ebtp-userinfo/v1/userpassword/validatePassword' ||
url.startsWith('/api/notification') || 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/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 = { headers = {
...options.headers, ...options.headers,
}; };
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/core-service-ebtp-userinfo/v1/userpassword/validatePassword' ||
url == '/api/notification/v1/notification/savaSmsByPhoneNew'
? (options.credentials = 'omit') ? (options.credentials = 'omit')
: null; : null;
} else { } else {