日任务-请求头添加设备id

This commit is contained in:
chenruiye
2025-05-29 11:31:12 +08:00
parent 96ceb23e7e
commit 9a34c8517e

View File

@@ -1106,8 +1106,10 @@ function networkRequest(reqObj = {}, type) {
pubHeader.os = pubInfo.deviceInfo.os || ''
pubHeader.osVersion = pubInfo.deviceInfo.osVersion || ''
pubHeader.channel = pubInfo.deviceInfo.channel || ''
pubHeader.deviceId = pubInfo.deviceInfo.deviceId || ''
pubHeader.client = 'h5'
pubHeader.pub_uid = window.location.pathname.match(/login.html/) ? 0 : pubInfo.uid
// pubHeader.pub_uid = 2757
pubHeader['Accept-Language'] = pubInfo['Accept-Language']
if (browser.app) {//true
pubHeader.pub_ticket = pubInfo.ticket