专家人脸登录后台接口联调完成
This commit is contained in:
@ -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,
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user