update
This commit is contained in:
@@ -246,7 +246,13 @@
|
||||
<div class="form-group">
|
||||
<label for="cookie-jsessionid">JSESSIONID:</label>
|
||||
<input type="text" id="cookie-jsessionid" placeholder="示例:9E592C9CC752F8552F0D746D91958475">
|
||||
<small>从浏览器开发者工具中复制JSESSIONID的值</small>
|
||||
<small>从浏览器开发者工具中复制JSESSIONID的值(必要)</small>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="cookie-jsessionid2">JSESSIONID(可选,第二个):</label>
|
||||
<input type="text" id="cookie-jsessionid2" placeholder="如抓包中存在第二个JSESSIONID可填写">
|
||||
<small>若抓包中请求头里有第二个JSESSIONID,请一起填写</small>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@@ -445,6 +451,7 @@
|
||||
// 组装Cookie数据
|
||||
function buildCookiesPayload(messageContainerId) {
|
||||
const jsessionid = document.getElementById('cookie-jsessionid').value.trim();
|
||||
const jsessionid2 = document.getElementById('cookie-jsessionid2').value.trim();
|
||||
const serverid = document.getElementById('cookie-serverid').value.trim();
|
||||
|
||||
if (!jsessionid || !serverid) {
|
||||
@@ -452,12 +459,11 @@
|
||||
return null;
|
||||
}
|
||||
|
||||
return {
|
||||
"请求 Cookie": {
|
||||
"JSESSIONID": jsessionid,
|
||||
"SERVERID": serverid
|
||||
}
|
||||
};
|
||||
const cookies = { "请求 Cookie": {} };
|
||||
// 支持双 JSESSIONID
|
||||
cookies["请求 Cookie"]["JSESSIONID"] = jsessionid2 ? [jsessionid, jsessionid2] : jsessionid;
|
||||
cookies["请求 Cookie"]["SERVERID"] = serverid;
|
||||
return cookies;
|
||||
}
|
||||
|
||||
// 全选/取消全选
|
||||
|
||||
Reference in New Issue
Block a user