单独获取某一种语言类型的内容

This commit is contained in:
chen wei bo
2025-09-20 11:30:19 +08:00
parent 5ee4aba296
commit b947a7c97d
2 changed files with 2 additions and 7 deletions
@@ -146,10 +146,6 @@ export default class LanguageUtils {
return defaultText;
}
if (this.languageCache.has(key)) {
return this.languageCache.get(key);
}
if (!ConfigManager.tables || !ConfigManager.tables.TbLanguage) {
console.warn("Language table not loaded yet");
return defaultText || key;
@@ -180,7 +176,6 @@ export default class LanguageUtils {
text = languageData.languageEn || defaultText || key;
}
this.languageCache.set(key, text);
return text;
}
+2 -2
View File
@@ -32,8 +32,8 @@ export class WebUsdFlow implements PaymentFlow {
private async pollOrder(orderId: string) {
const poller = new PaymentPoller();
return poller.poll(orderId, {
maxDurationMs: 2 * 60 * 1000,
startIntervalMs: 2000,
maxDurationMs: 10 * 60 * 1000,
startIntervalMs: 5000,
maxIntervalMs: 10000,
jitter: true,
}, (d) => console.log());