Commit da75802c by liangjianmin

fix(login): Add Referer header to downloader request

- Add Referer header with value 'wms-liexin2026' to download request
- Restructure header parameter in plus.downloader.createDownload call
- Ensure proper request authentication for file downloads
parent ca6c4173
Showing with 5 additions and 1 deletions
...@@ -148,7 +148,11 @@ ...@@ -148,7 +148,11 @@
title: '下载安装文件', title: '下载安装文件',
mask: true 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) { if (status == 200) {
this.local_version = this.online_version; //更新最新版本号 this.local_version = this.online_version; //更新最新版本号
uni.setStorageSync('wms_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