fix: return

master
howell 3 years ago
parent b488a6e470
commit c10fed2801

@ -168,11 +168,11 @@ func (o UserWalletApply) TableName() string {
func (o *UserWalletApply) AfterFind(db *gorm.DB) error { func (o *UserWalletApply) AfterFind(db *gorm.DB) error {
if o.User != nil { if o.User != nil {
o.Nickname = o.User.Nickname o.Nickname = o.User.Nickname
o.Mobile = o.User.Nickname o.Mobile = o.User.Mobile
} }
o.IsCompany = o.CompanyID != 0 o.IsCompany = o.CompanyID != 0
if o.ApplyUser != nil { if o.ApplyUser != nil {
o.ApplyUserName = o.ApplyUser.UserName o.ApplyUserName = o.ApplyUser.Name
} }
return nil return nil
} }

Loading…
Cancel
Save