diff --git a/goutils/proto_build/tpls/auto_grpc_nacos.tpl b/goutils/proto_build/tpls/auto_grpc_nacos.tpl index c442b1c..9cdb510 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("Env").Elem().FieldByName("GroupRPC").String() + groupName = value.FieldByName("GroupName").String() for i := 0; i < value.NumField(); i++ { v := value.Field(i)