3d-online-sign 0.6.2 → 0.6.3
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/index.umd.js +12 -0
- package/dist/index.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -524,6 +524,18 @@
|
|
|
524
524
|
|
|
525
525
|
// http request 拦截器
|
|
526
526
|
instance.interceptors.request.use(function (config) {
|
|
527
|
+
config.vbimRequestSource = '3d-online-sign';
|
|
528
|
+
var requestURL = /^(?:https?:)?\/\//i.test(config.url || '') ? config.url : "".concat(config.baseURL || '').concat(config.url || '');
|
|
529
|
+
var requestHost = requestURL.match(/^(?:https?:)?\/\/([^/:?#]+)/i);
|
|
530
|
+
if (requestHost && /(^|\.)vanke\.com$/i.test(requestHost[1]) && typeof console !== 'undefined' && console.warn) {
|
|
531
|
+
var requestPath = requestURL.slice(requestHost[0].length).split(/[?#]/)[0] || '/';
|
|
532
|
+
console.warn('[VBIM_AXIOS_DOMAIN_TRACE]', {
|
|
533
|
+
source: config.vbimRequestSource,
|
|
534
|
+
method: config.method,
|
|
535
|
+
host: requestHost[1],
|
|
536
|
+
path: requestPath
|
|
537
|
+
});
|
|
538
|
+
}
|
|
527
539
|
// 取accesstoken
|
|
528
540
|
// let uploadToken = getCookieValue("file_upload_token") || '1eef216846ba290a8d6282cb06eadaee';
|
|
529
541
|
// let appId = getCookieValue("file_app_id") || '3dTest';
|