实名认证

This commit is contained in:
WindowBird 2025-09-09 11:43:47 +08:00
parent 7bcaa0699f
commit 6540646b69
2 changed files with 25 additions and 2 deletions

View File

@ -0,0 +1,23 @@
import request from '../../utils/request'
/**
* 人脸实名认证
* @returns {Promise} 返回更新结果
*/
export function putRealName(data) {
return request({
url: '/app/realName/realName',
method: 'PUT',
data: {
userName: data.realName,
idCard: data.idCard,
},
header: {
'Content-Type': 'application/json',
},
}).catch(error => {
console.warn('人脸实名认证失败:', error)
throw error
})
}

View File

@ -20,8 +20,8 @@ export const commonEnum = {
REQUEST_AGENT: 'https://api.ccttiot.com/image-1755071317260.png',
AGENCY_INTERESTS: 'https://api.ccttiot.com/image-1755071348347.png',
ONLINE_CUSTOMER_SERVICE: 'https://api.ccttiot.com/image-1755071362176.png', //在线客服
Real_Name_Authentication:
'https://api.ccttiot.com/%E5%AE%9E%E5%90%8D%E8%AE%A4%E8%AF%81-1757309969703.png', //实名认证图标
Real_Name_Authentication: 'https://api.ccttiot.com/image-1757382999487.png', //实名认证图标
SET: 'https://api.ccttiot.com/image-1755071734792.png',
GIFT: 'https://api.ccttiot.com/image-1755071830648.png',
//业务代理