diff --git a/goutils/proto_build/tpls/auto_grpc_nacos.tpl b/goutils/proto_build/tpls/auto_grpc_nacos.tpl index 9cdb510..c442b1c 100644 --- a/goutils/proto_build/tpls/auto_grpc_nacos.tpl +++ b/goutils/proto_build/tpls/auto_grpc_nacos.tpl @@ -26,7 +26,7 @@ func AutoGrpcInit(obj any) { value = value.Elem() } - groupName = value.FieldByName("GroupName").String() + groupName = value.FieldByName("Env").Elem().FieldByName("GroupRPC").String() for i := 0; i < value.NumField(); i++ { v := value.Field(i)