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

This commit is contained in:
zzw
2026-08-31 15:04:38 +08:00
parent b79d49d399
commit 9111cb26e7
11 changed files with 181 additions and 57 deletions
@@ -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,
}