jufubao-admin-library 1.1.149 → 1.1.150

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.
@@ -386,6 +386,16 @@ export default {
386
386
  alert(userAgent);
387
387
  }
388
388
 
389
+ //替换为域名访问方式
390
+ let regMasterHost = /jfbv2-file-common\.oss-cn-beijing\.aliyuncs\.com/i;
391
+ let regDevHost = /new-sandbox-jfb-file-common\.oss-cn-hangzhou\.aliyuncs\.com/i;
392
+ if(regDevHost.test(download_url)) {
393
+ download_url = download_url.replace(regDevHost,'sandbox-private-file.jufubao.cn');
394
+ }
395
+ if(regMasterHost.test(download_url)) {
396
+ download_url = download_url.replace(regMasterHost,'private-file.jufubao.cn');
397
+ }
398
+
389
399
  // let filename = `${file_name}.${file_ext}`;
390
400
  // const link = document.createElement('a');
391
401
  // link.href = download_url;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.149",
3
+ "version": "1.1.150",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {