diff --git a/src/Microsoft.Translate.dev.js b/src/Microsoft.Translate.dev.js index 1d9f724..a4a4cab 100644 --- a/src/Microsoft.Translate.dev.js +++ b/src/Microsoft.Translate.dev.js @@ -20,7 +20,7 @@ const $request = { _.set(Settings, "Microsoft.Version", "Azure"); _.set(Settings, "Microsoft.Mode", "Token"); _.set(Settings, "Microsoft.Token", $response?.body); - lConsole.info(`Settings: ${JSON.stringify(Settings)}`); + Console.debug(`Settings.Microsoft.Token: ${JSON.stringify(Settings.Microsoft.Token)}`); // 写入缓存 Storage.setItem("@DualSubs.Translate.Settings.Vendor", Settings.Vendor); Storage.setItem("@DualSubs.API.Settings.Microsoft.Version", Settings.Microsoft.Version); diff --git a/src/Microsoft.Translate.js b/src/Microsoft.Translate.js index 72d8bfe..246caa2 100644 --- a/src/Microsoft.Translate.js +++ b/src/Microsoft.Translate.js @@ -8,6 +8,7 @@ const $request = { Accept: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", }, }; +Console.debug = () => {}; /***************** Processing *****************/ (async () => { /** @@ -20,7 +21,7 @@ const $request = { _.set(Settings, "Microsoft.Version", "Azure"); _.set(Settings, "Microsoft.Mode", "Token"); _.set(Settings, "Microsoft.Token", $response?.body); - Console.info(`Settings: ${JSON.stringify(Settings)}`); + Console.debug(`Settings.Microsoft.Token: ${JSON.stringify(Settings.Microsoft.Token)}`); // 写入缓存 Storage.setItem("@DualSubs.Translate.Settings.Vendor", Settings.Vendor); Storage.setItem("@DualSubs.API.Settings.Microsoft.Version", Settings.Microsoft.Version);