HomeLease/api/realNameAuthentication/realNameAuthentication.js

27 lines
500 B
JavaScript
Raw Normal View History

2025-09-09 11:43:47 +08:00
import request from '../../utils/request'
/**
* 人脸实名认证
* @returns {Promise} 返回更新结果
*/
export function putRealName(data) {
return request({
url: '/app/realName/realName',
method: 'PUT',
2025-09-09 14:40:31 +08:00
data,
2025-09-09 11:43:47 +08:00
header: {
'Content-Type': 'application/json',
},
}).catch(error => {
console.warn('人脸实名认证失败:', error)
throw error
})
}
2025-09-09 14:03:07 +08:00
export function refreshRealName() {
return request({
url: '/app/realName/refreshRealName',
})
}