|
|
|
@@ -45,6 +45,16 @@ module.exports = class extends Base { |
|
|
|
.page(page, pageSize) |
|
|
|
.countSelect(); |
|
|
|
|
|
|
|
// 验证码脱敏:6位验证码中间4位替换为**** |
|
|
|
const codeBizTypes = ['real_name_auth', 'login', 'change_phone']; |
|
|
|
if (list.data && list.data.length) { |
|
|
|
list.data.forEach(item => { |
|
|
|
if (item.code && codeBizTypes.includes(item.biz_type)) { |
|
|
|
item.code = item.code.slice(0, 1) + '****' + item.code.slice(-1); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
return this.json({ code: 0, data: list }); |
|
|
|
} |
|
|
|
|
|
|
|
|