fix: internal user
CI / changes (push) Successful in 40s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 24s
CI / chore (push) Successful in 23s
CI / equipment (push) Successful in 1s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / payment (push) Successful in 1s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 23s
CI / task (push) Successful in 0s
CI / user (push) Successful in 24s
CI / wecom (push) Successful in 0s

This commit is contained in:
zzw
2026-09-16 15:19:54 +08:00
parent e334bf0f66
commit 052425970a
15 changed files with 259 additions and 97 deletions
+14 -13
View File
@@ -114,20 +114,21 @@ func (l *TestLogic) Test(in *chore.TestReq) (*chore.Response, error) {
// Mobile: in.GetChar(),
// })
// res, err := user.NewUserClient(cli.Conn()).InternalCheckUpdate(l.ctx, &user.InternalCheckUpdateReq{
// UserId: int64(in.GetId()),
// Mobile: in.GetChar(),
// })
// fmt.Println(res.GetResult())
res, err := user.NewUserClient(cli.Conn()).InternalCreate(l.ctx, &user.InternalCreateReq{
Mobile: in.GetChar(),
ClientCode: []string{"user_skin", "user_o2"},
CredentialType: []string{"password", "sms"},
Identifier: in.GetChar(),
Secret: "123123",
res, err := user.NewUserClient(cli.Conn()).InternalCheckUpdate(l.ctx, &user.InternalCheckUpdateReq{
BizId: int64(in.GetId()),
SubjectType: "user",
Mobile: in.GetChar(),
})
fmt.Println(res)
fmt.Println(res.GetResult())
// res, err := user.NewUserClient(cli.Conn()).InternalCreate(l.ctx, &user.InternalCreateReq{
// BizId: 10086,
// Mobile: in.GetChar(),
// ClientCode: []string{"user_skin", "user_o2"},
// CredentialType: []string{"password", "sms"},
// Identifier: in.GetChar(),
// Secret: "123123",
// })
if err != nil {
l.Errorf("XXXXXX: %v", err)
return failResponse(utils.ErrorInternalServer), nil