f
This commit is contained in:
@@ -109,6 +109,7 @@ type (
|
|||||||
FrozenBalance float64 `json:"frozen_balance"` // 冻结余额
|
FrozenBalance float64 `json:"frozen_balance"` // 冻结余额
|
||||||
WithdrawnAmount float64 `json:"withdrawn_amount"` // 提现总额
|
WithdrawnAmount float64 `json:"withdrawn_amount"` // 提现总额
|
||||||
IsRealName bool `json:"is_real_name"` // 是否已实名
|
IsRealName bool `json:"is_real_name"` // 是否已实名
|
||||||
|
RealName string `json:"real_name"` // 姓名(实名认证的姓名)
|
||||||
IdCardPlain string `json:"id_card_plain"` // 身份证号(解密后的明文)
|
IdCardPlain string `json:"id_card_plain"` // 身份证号(解密后的明文)
|
||||||
CreateTime string `json:"create_time"` // 创建时间
|
CreateTime string `json:"create_time"` // 创建时间
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,11 +83,13 @@ func (l *AdminGetAgentListLogic) AdminGetAgentList(req *types.AdminGetAgentListR
|
|||||||
// 查询实名认证信息(数据库姓名明文、身份证密文,解密后明文返回不脱敏)
|
// 查询实名认证信息(数据库姓名明文、身份证密文,解密后明文返回不脱敏)
|
||||||
realNameInfo, _ := l.svcCtx.AgentRealNameModel.FindOneByAgentId(l.ctx, agent.Id)
|
realNameInfo, _ := l.svcCtx.AgentRealNameModel.FindOneByAgentId(l.ctx, agent.Id)
|
||||||
isRealName := false
|
isRealName := false
|
||||||
|
realName := ""
|
||||||
idCardPlain := "" // 解密后明文返回
|
idCardPlain := "" // 解密后明文返回
|
||||||
if realNameInfo != nil {
|
if realNameInfo != nil {
|
||||||
if realNameInfo.VerifyTime.Valid {
|
if realNameInfo.VerifyTime.Valid {
|
||||||
isRealName = true // verify_time不为空表示已通过三要素核验
|
isRealName = true // verify_time不为空表示已通过三要素核验
|
||||||
}
|
}
|
||||||
|
realName = realNameInfo.Name
|
||||||
if realNameInfo.IdCard != "" {
|
if realNameInfo.IdCard != "" {
|
||||||
key, keyErr := hex.DecodeString(l.svcCtx.Config.Encrypt.SecretKey)
|
key, keyErr := hex.DecodeString(l.svcCtx.Config.Encrypt.SecretKey)
|
||||||
if keyErr == nil {
|
if keyErr == nil {
|
||||||
@@ -129,6 +131,7 @@ func (l *AdminGetAgentListLogic) AdminGetAgentList(req *types.AdminGetAgentListR
|
|||||||
FrozenBalance: 0,
|
FrozenBalance: 0,
|
||||||
WithdrawnAmount: 0,
|
WithdrawnAmount: 0,
|
||||||
IsRealName: isRealName,
|
IsRealName: isRealName,
|
||||||
|
RealName: realName,
|
||||||
IdCardPlain: idCardPlain,
|
IdCardPlain: idCardPlain,
|
||||||
CreateTime: agent.CreateTime.Format("2006-01-02 15:04:05"),
|
CreateTime: agent.CreateTime.Format("2006-01-02 15:04:05"),
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1110,6 +1110,7 @@ type AgentListItem struct {
|
|||||||
FrozenBalance float64 `json:"frozen_balance"` // 冻结余额
|
FrozenBalance float64 `json:"frozen_balance"` // 冻结余额
|
||||||
WithdrawnAmount float64 `json:"withdrawn_amount"` // 提现总额
|
WithdrawnAmount float64 `json:"withdrawn_amount"` // 提现总额
|
||||||
IsRealName bool `json:"is_real_name"` // 是否已实名
|
IsRealName bool `json:"is_real_name"` // 是否已实名
|
||||||
|
RealName string `json:"real_name"` // 姓名(实名认证的姓名)
|
||||||
IdCardPlain string `json:"id_card_plain"` // 身份证号(解密后的明文)
|
IdCardPlain string `json:"id_card_plain"` // 身份证号(解密后的明文)
|
||||||
CreateTime string `json:"create_time"` // 创建时间
|
CreateTime string `json:"create_time"` // 创建时间
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user