Commit ca6c4173 by liangjianmin

fix(app): Add Referer header to downloader request

- Add Referer header with value 'wms-liexin2026' to download request
- Improve request compatibility and security by including proper headers
- Refactor downloader.createDownload call to pass header configuration object
parent ca1ec37b
Showing with 5 additions and 1 deletions
......@@ -38,7 +38,11 @@
title: '下载安装文件',
mask: true
});
let dtask = plus.downloader.createDownload(url, {}, (d, status) => {
let dtask = plus.downloader.createDownload(url, {
header: {
Referer: 'wms-liexin2026'
}
}, (d, status) => {
if (status == 200) {
this.local_version = this.online_version; //更新最新版本号
uni.setStorageSync('wms_version', this.online_version); //更新本地存储最新版本号
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment