@aliyun-obv/api 0.3.18 → 0.3.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.es.js +6 -0
- package/package.json +1 -1
package/dist/api.es.js
CHANGED
|
@@ -218,6 +218,9 @@ function is4Service(location2) {
|
|
|
218
218
|
/(4service|4bjzwy|4finance)(\.console)?(\.aliyun|\.alibabacloud)\.com$/
|
|
219
219
|
);
|
|
220
220
|
}
|
|
221
|
+
function is4Finance(location2) {
|
|
222
|
+
return location2.hostname.match(/(4finance)(\.console)?(\.aliyun|\.alibabacloud)\.com$/);
|
|
223
|
+
}
|
|
221
224
|
function getSLSdomain() {
|
|
222
225
|
var _a2, _b2;
|
|
223
226
|
if ((_a2 = window == null ? void 0 : window.__CONSOLE_OBVIZ_DOMAIN__) == null ? void 0 : _a2.getSlsDomain) {
|
|
@@ -252,6 +255,9 @@ function getSLSdomain() {
|
|
|
252
255
|
}
|
|
253
256
|
return "https://pre-sls.console.aliyun.com";
|
|
254
257
|
}
|
|
258
|
+
if (is4Finance(window.location)) {
|
|
259
|
+
return `https://log4finance.console.aliyun.com`;
|
|
260
|
+
}
|
|
255
261
|
if (is4Service(window.location)) {
|
|
256
262
|
return `https://sls4service.console.aliyun.com`;
|
|
257
263
|
}
|
package/package.json
CHANGED