作者 yangfu

参数验证修改

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