修改BUG
This commit is contained in:
@@ -254,6 +254,12 @@
|
||||
<input type="text" id="cookie-serverid" placeholder="示例:546762930bd4e5dda968e40edd43fb6a|1768878822|1768878621">
|
||||
<small>从浏览器开发者工具中复制SERVERID的值</small>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="cookie-raw">整行 Cookie(可选,直接粘贴浏览器抓到的整行 Cookie,会优先使用):</label>
|
||||
<textarea id="cookie-raw" placeholder="JSESSIONID=...; JSESSIONID=...; SERVERID=..."></textarea>
|
||||
<small>如果填写本项,将优先使用整行 Cookie(支持多个JSESSIONID)</small>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="examid">examid:</label>
|
||||
@@ -341,6 +347,7 @@
|
||||
const examid = document.getElementById('examid').value.trim();
|
||||
const bmid = document.getElementById('bmid').value.trim();
|
||||
const userid = document.getElementById('userid').value.trim();
|
||||
const aa = Date.now().toString();
|
||||
const cookieData = buildCookiesPayload('dsdm-message');
|
||||
|
||||
if (!examid || !bmid || !userid) {
|
||||
@@ -359,7 +366,7 @@
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
},
|
||||
body: `examid=${encodeURIComponent(examid)}&bmid=${encodeURIComponent(bmid)}&userid=${encodeURIComponent(userid)}&cookies=${encodeURIComponent(JSON.stringify(cookieData))}`
|
||||
body: `examid=${encodeURIComponent(examid)}&bmid=${encodeURIComponent(bmid)}&userid=${encodeURIComponent(userid)}&aa=${aa}&cookies=${encodeURIComponent(JSON.stringify(cookieData))}`
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
@@ -443,6 +450,11 @@
|
||||
|
||||
// 组装Cookie数据
|
||||
function buildCookiesPayload(messageContainerId) {
|
||||
const rawLine = document.getElementById('cookie-raw').value.trim();
|
||||
if (rawLine) {
|
||||
return rawLine;
|
||||
}
|
||||
|
||||
const jsessionid = document.getElementById('cookie-jsessionid').value.trim();
|
||||
const serverid = document.getElementById('cookie-serverid').value.trim();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user