mirror of
https://github.com/aceld/kis-flow.git
synced 2025-01-22 23:20:24 +08:00
cancel NewFuncConfig check S and L option
This commit is contained in:
parent
dd634e6921
commit
0c058d3f24
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user