// client_send_dump.js - 把客户端记录下来的"上行命令"上传到本地服务器,用于反查上行方法号 // 前置:本地镜像 module_61860.js 的发送点(Ie.i7q)已加 [Hornet 调试], // 每次上行都会往 window.__HornetSendLog__ 里塞 {t, cls, text, len, hex}。 // 用法:进游戏点几下(车库/商店/任务…)→ 控制台粘贴本文件 → 等"已上传"提示 (function () { var Log = window.__HornetSendLog__; if (!Log || !Log.length) { console.warn('[SendDump] window.__HornetSendLog__ 为空:确认镜像 module_61860.js 已带调试钩子,并且刷新过页面'); return; } console.log('[SendDump] 共 ' + Log.length + ' 条上行记录,样例:'); Log.slice(-8).forEach(function (E) { console.log(' len=' + E.len + ' cls=' + E.cls + ' ' + String(E.text).slice(0, 90)); }); var Body = JSON.stringify(Log); fetch('/__dump__/sendlog.json', { method: 'POST', body: Body }).then(function (R) { console.log('[SendDump] 已上传 /__dump__/sendlog.json → HTTP ' + R.status + '(' + Body.length + ' 字节)'); }).catch(function (E) { console.warn('[SendDump] 上传失败:' + E.message + '(可手动 copy(JSON.stringify(window.__HornetSendLog__)))'); }); })();