Skip to content

fix:处理百度平台调用频率太快被限制#138

Open
zh-d-d wants to merge 1 commit into
wensonsmith:masterfrom
zh-d-d:feature/debounce
Open

fix:处理百度平台调用频率太快被限制#138
zh-d-d wants to merge 1 commit into
wensonsmith:masterfrom
zh-d-d:feature/debounce

Conversation

@zh-d-d

@zh-d-d zh-d-d commented Feb 20, 2023

Copy link
Copy Markdown

使用平台为百度

当输入单词时,会出现"访问频率受限" 异常现象。
image
image

增加了一个防抖策略

Signed-off-by: zhangdd <86431843@qq.com>
Comment thread src/index.ts

console.log(result);
}
}, 500);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

此处的延时间,建议支持通过系统变量设置,用法类似上面的 tjs.getenv("platform")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
自带防抖把这个时间调大点

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

刚刚找了好一会才找到这个配置项,记录一下:在 [Edit Object] 中打开之后,点击 Run Behavior

image

@NICK-T-D

NICK-T-D commented Jun 27, 2023 via email

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants