fix: wecom user list
CI / admin (push) Has been skipped
CI / bff (push) Has been skipped
CI / chore (push) Has been skipped
CI / express (push) Has been skipped
CI / product (push) Has been skipped
CI / sale (push) Has been skipped
CI / user (push) Has been skipped
CI / wecom (push) Has been skipped
CI / changes (push) Successful in 12s
CI / ad (push) Successful in 0s
CI / admin (push) Has been skipped
CI / bff (push) Has been skipped
CI / chore (push) Has been skipped
CI / express (push) Has been skipped
CI / product (push) Has been skipped
CI / sale (push) Has been skipped
CI / user (push) Has been skipped
CI / wecom (push) Has been skipped
CI / changes (push) Successful in 12s
CI / ad (push) Successful in 0s
This commit is contained in:
@@ -80,6 +80,12 @@ func (l *CreateUserLogic) CreateUser(in *wecom.CreateUserReq) (*wecom.Response,
|
||||
}
|
||||
}
|
||||
|
||||
agentsJSON, aErr := buildAgentsJSON(req.AgentIds)
|
||||
if aErr != nil {
|
||||
l.Errorf("wecom create agents: %v", aErr)
|
||||
return outResponse(utils.ErrorParams, aErr.Error()), nil
|
||||
}
|
||||
|
||||
now := utils.Now()
|
||||
row := dao.WecomUser{
|
||||
UserId: req.UserId,
|
||||
@@ -89,6 +95,7 @@ func (l *CreateUserLogic) CreateUser(in *wecom.CreateUserReq) (*wecom.Response,
|
||||
Mobile: encryptMobile,
|
||||
Avatar: req.Avatar,
|
||||
Status: userStatus,
|
||||
AgentIds: agentsJSON,
|
||||
CreatedAt: now,
|
||||
UpdatedAt: now,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user