mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-01-23 02:40:23 +08:00
fix 添加用户
This commit is contained in:
parent
ed17cd8bfa
commit
69c8918221
@ -491,10 +491,9 @@ func (s *sAdminMember) Edit(ctx context.Context, in adminin.MemberEditInp) (err
|
||||
}
|
||||
|
||||
// 默认头像
|
||||
if in.Avatar == "" {
|
||||
in.Avatar = config.Avatar
|
||||
if data.Avatar == "" {
|
||||
data.Avatar = config.Avatar
|
||||
}
|
||||
data.MemberEditInp = in
|
||||
|
||||
return g.DB().Transaction(ctx, func(ctx context.Context, tx gdb.TX) (err error) {
|
||||
id, err := dao.AdminMember.Ctx(ctx).Data(data).InsertAndGetId()
|
||||
|
Loading…
Reference in New Issue
Block a user