From 0c058d3f2483b48b49c4aa822a5aad8989654000 Mon Sep 17 00:00:00 2001 From: aceld Date: Wed, 3 Apr 2024 18:44:00 +0800 Subject: [PATCH] cancel NewFuncConfig check S and L option --- config/kis_func_config.go | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/config/kis_func_config.go b/config/kis_func_config.go index 0c38f28..da0ad71 100644 --- a/config/kis_func_config.go +++ b/config/kis_func_config.go @@ -52,16 +52,18 @@ func NewFuncConfig( config.FMode = string(mode) - // FunctionS 和 L 需要必传KisConnector参数,原因是S和L需要通过Connector进行建立流式关系 - if mode == common.S || mode == common.L { - if option == nil { - log.Logger().ErrorF("Funcion S/L need option->Cid\n") - return nil - } else if option.CName == "" { - log.Logger().ErrorF("Funcion S/L need option->Cid\n") - return nil + /* + // FunctionS 和 L 需要必传KisConnector参数,原因是S和L需要通过Connector进行建立流式关系 + if mode == common.S || mode == common.L { + if option == nil { + log.Logger().ErrorF("Funcion S/L need option->Cid\n") + return nil + } else if option.CName == "" { + log.Logger().ErrorF("Funcion S/L need option->Cid\n") + return nil + } } - } + */ if option != nil { config.Option = *option