新增请求头
This commit is contained in:
@@ -543,7 +543,7 @@ function getInfoFromClient () {
|
||||
// 非app环境调试参数
|
||||
pubInfo.uid = sessionStorage.getItem("uid") ? sessionStorage.getItem("uid") : '';
|
||||
// pubInfo.ticket = sessionStorage.getItem("ticket") ? sessionStorage.getItem("ticket") : '';
|
||||
pubInfo['h5_token'] = sessionStorage.getItem("ticket") ? sessionStorage.getItem("ticket") : '';
|
||||
pubInfo.h5_token = sessionStorage.getItem("ticket") ? sessionStorage.getItem("ticket") : '';
|
||||
pubInfo.deviceId = "0";
|
||||
pubInfo.deviceInfo = {
|
||||
app: 'peko',
|
||||
@@ -762,6 +762,7 @@ function networkRequest (reqObj = {}, type) {
|
||||
if (typeof pubInfo.deviceInfo === 'string') {
|
||||
pubInfo.deviceInfo = JSON.parse(pubInfo.deviceInfo);
|
||||
};
|
||||
var browser = checkVersion();
|
||||
const pubHeader = {
|
||||
app: type != 'yinbaos' ? pubInfo.deviceInfo.app : 'yinbao',
|
||||
// app: 'peko',
|
||||
@@ -772,7 +773,8 @@ function networkRequest (reqObj = {}, type) {
|
||||
channel: pubInfo.deviceInfo.channel || '',
|
||||
client: 'h5',
|
||||
pub_uid: window.location.pathname.match(/login.html/) ? 0 : pubInfo.uid,
|
||||
pub_ticket: pubInfo.ticket
|
||||
pub_ticket: pubInfo.ticket,
|
||||
h5_token: pubInfo.ticket,
|
||||
};
|
||||
const url = reqObj.url;
|
||||
const commParams = objToParam(pubHeader);
|
||||
|
Reference in New Issue
Block a user