contract 部分修改
This commit is contained in:
parent
273c4513f0
commit
e65b4197b3
@ -221,6 +221,19 @@ func (a *Contract) SignContract(req *contract.SignContractRequest) (rep *contrac
|
||||
return
|
||||
}
|
||||
|
||||
var (
|
||||
realName string
|
||||
address string
|
||||
idNum string
|
||||
)
|
||||
if artistDetailResponse.RealNameInfo != nil {
|
||||
realName = artistDetailResponse.RealNameInfo.Name
|
||||
address = artistDetailResponse.RealNameInfo.Address
|
||||
idNum = artistDetailResponse.RealNameInfo.IdNum
|
||||
} else {
|
||||
fmt.Printf("用户%s 实名信息为空", artistDetailResponse.MgmtArtistUid)
|
||||
}
|
||||
|
||||
if contractInfo.Type != 4 && contractInfo.Type != 7 {
|
||||
|
||||
switch contractInfo.Type {
|
||||
@ -228,18 +241,7 @@ func (a *Contract) SignContract(req *contract.SignContractRequest) (rep *contrac
|
||||
var ContractNo = fmt.Sprintf("TF_%d", time.Now().UnixNano())
|
||||
endTime := time.Now().AddDate(1, 0, -1)
|
||||
parameterMap := make((map[string]string), 0)
|
||||
var (
|
||||
realName string
|
||||
address string
|
||||
idNum string
|
||||
)
|
||||
if artistDetailResponse.RealNameInfo != nil {
|
||||
realName = artistDetailResponse.RealNameInfo.Name
|
||||
address = artistDetailResponse.RealNameInfo.Address
|
||||
idNum = artistDetailResponse.RealNameInfo.IdNum
|
||||
} else {
|
||||
fmt.Printf("用户%s 实名信息为空", artistDetailResponse.MgmtArtistUid)
|
||||
}
|
||||
|
||||
// 一、 模板填充
|
||||
parameterMap["PartyAName"] = realName
|
||||
parameterMap["PartyAAddress"] = address
|
||||
|
Loading…
Reference in New Issue
Block a user