作者 yangfu

参数验证修改

... ... @@ -90,12 +90,12 @@ func (cp *ContractParticipant) Complete(userBaseId int64, sensitive bool) *Contr
if cp.User.UserBaseId != userBaseId {
cp.DividendsAmount = 0
cp.SensitiveFlag = true
name := []byte(cp.User.UserInfo.UserName)
name := []rune(cp.User.UserInfo.UserName)
for i := range name {
if i == 0 {
continue
}
name[i] = byte('*')
name[i] = rune('*')
}
cp.User.UserInfo.UserName = string(name)
cp.Participant = cp.User.SimpleCopy()
... ...
... ... @@ -153,7 +153,7 @@ func (ptr *CooperationStatisticsService) PersonCompanyPaymentHistoryStatistics(q
Limit int `json:"limit" valid:"Required"`
Offset int `json:"offset"`
UserBaseId int64 `json:"userBaseId" valid:"Required"`
OrgId int64 `json:"orgId" valid:"Required"`
OrgId int64 `json:"orgId"`
SortByActuallyPaidAmount int `json:"sortByActuallyPaidAmount" valid:"Required"`
PaymentBeginTime time.Time `json:"paymentBeginTime"`
PaymentEndTime time.Time `json:"paymentEndTime"`
... ...