From 60eacb6c05e6a9084456953b506fee68b1d64765 Mon Sep 17 00:00:00 2001 From: Monet Lee Date: Fri, 2 Aug 2024 19:33:05 +0800 Subject: [PATCH 1/3] update dockerfile contents. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8090d968..c0076d9c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,7 +43,7 @@ COPY --from=builder $SERVER_DIR/start-config.yml $SERVER_DIR/ COPY --from=builder $SERVER_DIR/go.mod $SERVER_DIR/ COPY --from=builder $SERVER_DIR/go.sum $SERVER_DIR/ -RUN go get github.com/openimsdk/v0.0.14-alpha.5 +RUN go get github.com/openimsdk/gomake@v0.0.14-alpha.5 # Set the command to run when the container starts ENTRYPOINT ["sh", "-c", "mage start && tail -f /dev/null"] From d38ea02f34c4a96662c37d8112f7963f2aedc093 Mon Sep 17 00:00:00 2001 From: Monet Lee Date: Fri, 2 Aug 2024 20:05:07 +0800 Subject: [PATCH 2/3] update field. --- internal/rpc/admin/token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rpc/admin/token.go b/internal/rpc/admin/token.go index c06ad344..5036ba98 100644 --- a/internal/rpc/admin/token.go +++ b/internal/rpc/admin/token.go @@ -23,7 +23,7 @@ import ( "github.com/redis/go-redis/v9" ) -func (o *adminServer) CreateToken(ctx context.Context, req *admin.CreateTokenReq) (*admin.CreateTokenResp, error) { +func (o *adminServer) CreateToken(ctx context.Context, req *adminpb.CreateTokenReq) (*adminpb.CreateTokenResp, error) { token, expire, err := o.Token.CreateToken(req.UserID, req.UserType) if err != nil { From 45134ae16933595963e3ef968da7aebce94bf6a1 Mon Sep 17 00:00:00 2001 From: Monet Lee Date: Mon, 23 Sep 2024 15:13:39 +0800 Subject: [PATCH 3/3] feat: update RegisterUser use adminToken. --- internal/api/chat/chat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/chat/chat.go b/internal/api/chat/chat.go index 6ab2e4bb..94fd36d4 100644 --- a/internal/api/chat/chat.go +++ b/internal/api/chat/chat.go @@ -132,7 +132,7 @@ func (o *Api) RegisterUser(c *gin.Context) { FaceURL: req.User.FaceURL, CreateTime: time.Now().UnixMilli(), } - err = o.imApiCaller.RegisterUser(c, []*sdkws.UserInfo{userInfo}) + err = o.imApiCaller.RegisterUser(apiCtx, []*sdkws.UserInfo{userInfo}) if err != nil { apiresp.GinError(c, err) return