feat: 支持使用方自己判断错误是否进行域名降级 (#77)

* feat: 支持使用方自己判断错误是否进行域名降级

* feat: 增加默认函数

* feat: 补充 code2session 重试
This commit is contained in:
evanna
2023-06-27 14:21:33 +08:00
committed by GitHub
parent 1e7f329ce9
commit a8898b09e0
9 changed files with 12804 additions and 63 deletions

View File

@@ -60,6 +60,8 @@ export interface IInitOption {
backupDomainList?: IAnyObject;
/* 备用域名启用时回调函数 */
backupDomainEnableCallback?: Function;
/* 是否需要启用备用域名 */
domainChangeTrigger?: Function;
}
export interface ICodeToSessionOptions{