7.13 人脸识别打开并增加控制接口 修改上传人脸照片提示文字

This commit is contained in:
jl-zhoujl2
2023-07-13 14:22:54 +08:00
parent dce6a1514c
commit 1fe71d9e4f
5 changed files with 65 additions and 48 deletions

View File

@ -17,11 +17,19 @@ export async function changePass(params: any) {
*/
export async function rgbToBase64(params: any) {
const _body = JSON.stringify({//post请求参数
type: 'pixel',
type: 'pixel',
rgb: params.image
});
return request('/api/core-service-ebtp-userinfo/outer/v1/ebtp/face/rgbArray2Base64', {
method: 'post',
body:_body,
body: _body,
});
}
/**
* 是否显示人脸识别tab
* @param params
*/
export async function showFaceTab() {
return request('/api/biz-service-ebtp-extend//v1/BizFuncSwitchConfig/bizfuncswitchconfig/getFaceRecognitionFlag');
}