feat: support baidu api key (#1687)

This commit is contained in:
Se7en
2025-01-19 11:46:29 +08:00
committed by GitHub
parent fd1eb54f25
commit b1f625a652
5 changed files with 5 additions and 270 deletions

View File

@@ -86,11 +86,6 @@ func (c *PluginConfig) Complete(log wrapper.Log) error {
providerConfig := c.GetProviderConfig()
err = providerConfig.SetApiTokensFailover(log, c.activeProvider)
if handler, ok := c.activeProvider.(provider.TickFuncHandler); ok {
tickPeriod, tickFunc := handler.GetTickFunc(log)
wrapper.RegisteTickFunc(tickPeriod, tickFunc)
}
return err
}