专家人脸登录后台接口联调完成

This commit is contained in:
袁帅
2022-09-05 17:28:35 +08:00
parent b64dce6ce4
commit 6fbdeec3c0
4 changed files with 20 additions and 12 deletions

View File

@ -10,9 +10,18 @@ export async function changePass(params: any) {
});
}
/**
* rgb转base64
* @param params rgb字符串
* @returns
*/
export async function rgbToBase64(params: any) {
const _body = JSON.stringify({//post请求参数
type: 'pixel',
rgb: params.image
});
return request('/api/core-service-ebtp-userinfo/outer/v1/ebtp/face/rgbArray2Base64', {
method: 'post',
params
body:_body,
});
}