mirror of
https://github.com/smallfawn/decode_action.git
synced 2026-11-05 23:36:44 +08:00
3747 lines
152 KiB
JavaScript
3747 lines
152 KiB
JavaScript
//Wed Nov 04 2026 08:47:17 GMT+0000 (Coordinated Universal Time)
|
||
//Base:<url id="cv1cref6o68qmpt26ol0" type="url" status="parsed" title="GitHub - echo094/decode-js: JS混淆代码的AST分析工具 AST analysis tool for obfuscated JS code" wc="2165">https://github.com/echo094/decode-js</url>
|
||
//Modify:<url id="cv1cref6o68qmpt26olg" type="url" status="parsed" title="GitHub - smallfawn/decode_action: 世界上本来不存在加密,加密的人多了,也便成就了解密" wc="741">https://github.com/smallfawn/decode_action</url>
|
||
(() => {
|
||
"use strict";
|
||
|
||
if (window.__dksqFx) {
|
||
return;
|
||
}
|
||
window.__dksqFx = true;
|
||
const _0x3ada5c = "dksqFx2Cfg";
|
||
const _0x7ac307 = "https://aslkdasldjw.xyz";
|
||
const _0x2e212e = "dksqFxKey";
|
||
const _0x13eb97 = "dksqFxInst";
|
||
const _0x37ded5 = ["yunnan", "liaoning", "shaanxi", "xinjiang"];
|
||
const _0xe86e87 = ["yunnan", "liaoning", "shaanxi", "xinjiang"];
|
||
const _0x51ddf6 = (() => {
|
||
{
|
||
try {
|
||
const _0x2a87c3 = /^etax\.([a-z0-9]+)\.chinatax\.gov\.cn$/i.exec(location.hostname);
|
||
return _0x2a87c3 ? _0x2a87c3[1].toLowerCase() : "";
|
||
} catch (_0x2c8e6c) {
|
||
return "";
|
||
}
|
||
}
|
||
})();
|
||
const _0x3e7c92 = false || _0x37ded5.includes(_0x51ddf6);
|
||
const _0x3b4f39 = _0xe86e87.includes(_0x51ddf6);
|
||
const _0x5efe4d = ["分", "角", "元", "千元", "万元", "亿元", "两", "斤", "毫克", "克", "千克(公斤)", "吨", "千吨", "万吨", "磅", "毫米", "厘米", "分米", "米", "千米(公里)", "万米", "码", "英尺", "平方毫米", "平方厘米", "平方分米", "平方米", "平方公里", "公顷", "亩", "毫升(立方厘米)", "公升(立方分米)", "立方米(方)", "千立方米", "万立方米", "亿立方米", "份", "组", "本", "箱", "卷", "瓦(W)", "千瓦", "万瓦", "千伏安时", "千瓦时(度)", "千千瓦时(千度)", "万千瓦时", "位(Bit)", "字节(B)", "千字节(KB)", "兆字节(MB)", "吉字节(GB)", "太字节(TB)", "皮字节(PB)", "个", "支", "只", "把", "条", "台", "架", "辆", "头", "件", "双", "套", "打", "包", "批", "匹", "部", "座", "艘", "张", "枝", "根", "块", "副", "片", "瓶", "标准箱", "万支", "盒", "桶", "枚", "次", "项", "株(棵)", "户", "点", "袋", "档", "朵", "顶", "罐", "回路", "间", "捆", "例", "令", "箩", "对", "门", "面", "付", "盘", "具", "圈", "扇", "束", "刷", "卡", "听", "筒", "粒", "串", "盏", "合", "轴", "尊", "节", "万双", "板", "版", "盆", "亿支", "台(套)", "万台", "万块", "万部", "床", "羽", "克拉", "盎司", "秒", "分钟", "小时", "日", "月", "季", "年", "分贝"];
|
||
const _0x5b8f79 = {
|
||
"批": "1015",
|
||
"立方米(方)": "0511"
|
||
};
|
||
let _0x35cc89 = {
|
||
pause: 900,
|
||
bypassPopup: true,
|
||
gateJe: 8000,
|
||
verbose: false,
|
||
maxEntries: 3000,
|
||
maxBodyLen: 200000,
|
||
forceGate: true,
|
||
poolMode: true,
|
||
autoMode: false,
|
||
ticketCount: 1
|
||
};
|
||
try {
|
||
Object.assign(_0x35cc89, JSON.parse(localStorage.getItem(_0x3ada5c) || "{}"));
|
||
} catch (_0x5382c6) {}
|
||
if (_0x35cc89.ticketCount === 8) {
|
||
_0x35cc89.ticketCount = 1;
|
||
}
|
||
_0x35cc89.bypassPopup = true;
|
||
_0x35cc89.poolMode = true;
|
||
_0x35cc89.forceGate = true;
|
||
_0x35cc89.gateJe = 10;
|
||
_0x35cc89.verbose = false;
|
||
const _0xd5c273 = () => localStorage.setItem(_0x3ada5c, JSON.stringify(_0x35cc89));
|
||
const _0x108366 = false;
|
||
const _0x372622 = "dksqFxInst";
|
||
function _0x18d15d(_0x2285dd) {
|
||
{
|
||
try {
|
||
const _0x23df81 = document.cookie.split(";").map(_0x293ea0 => _0x293ea0.trim()).find(_0x43b09d => _0x43b09d.indexOf(_0x2285dd + "=") === 0);
|
||
if (_0x23df81) {
|
||
return _0x23df81.slice(_0x2285dd.length + 1);
|
||
}
|
||
} catch (_0x23d5f6) {}
|
||
return "";
|
||
}
|
||
}
|
||
let _0x15e1fe = _0x18d15d(_0x372622) || localStorage.getItem(_0x13eb97) || "";
|
||
!_0x15e1fe && (_0x15e1fe = crypto.randomUUID());
|
||
localStorage.setItem(_0x13eb97, _0x15e1fe);
|
||
try {
|
||
if (!_0x18d15d(_0x372622)) {
|
||
document.cookie = _0x372622 + "=" + _0x15e1fe + "; domain=chinatax.gov.cn; path=/; max-age=315360000; SameSite=Lax";
|
||
}
|
||
} catch (_0x2a16e4) {}
|
||
const _0x12cee3 = "dksqFxKey";
|
||
function _0x4f04cf() {
|
||
try {
|
||
const _0x3d0e64 = _0x18d15d(_0x12cee3);
|
||
const _0x33562d = localStorage.getItem(_0x2e212e) || "";
|
||
if (_0x3d0e64 && _0x3d0e64 !== _0x33562d) {
|
||
localStorage.setItem(_0x2e212e, _0x3d0e64);
|
||
}
|
||
return _0x3d0e64 || _0x33562d;
|
||
} catch (_0x4daf4e) {
|
||
return localStorage.getItem(_0x2e212e) || "";
|
||
}
|
||
}
|
||
function _0x58fd2e(_0x4cad47) {
|
||
localStorage.setItem(_0x2e212e, _0x4cad47);
|
||
try {
|
||
document.cookie = _0x12cee3 + "=" + _0x4cad47 + "; domain=chinatax.gov.cn; path=/; max-age=315360000; SameSite=Lax";
|
||
} catch (_0x2c3f88) {}
|
||
}
|
||
function _0x20faa4() {
|
||
localStorage.removeItem(_0x2e212e);
|
||
try {
|
||
document.cookie = _0x12cee3 + "=; domain=chinatax.gov.cn; path=/; max-age=0; SameSite=Lax";
|
||
} catch (_0x1efaa9) {}
|
||
}
|
||
function _0x5dac71(_0x51890) {
|
||
{
|
||
const _0x32e11d = new Date(Number(_0x51890));
|
||
if (isNaN(_0x32e11d.getTime())) {
|
||
return String(_0x51890);
|
||
}
|
||
const _0x290f5e = _0x1a3d94 => _0x1a3d94 < 10 ? "0" + _0x1a3d94 : String(_0x1a3d94);
|
||
return _0x32e11d.getFullYear() + "-" + _0x290f5e(_0x32e11d.getMonth() + 1) + "-" + _0x290f5e(_0x32e11d.getDate()) + " " + _0x290f5e(_0x32e11d.getHours()) + ":" + _0x290f5e(_0x32e11d.getMinutes());
|
||
}
|
||
}
|
||
async function _0x1f49aa() {
|
||
{
|
||
const _0x2052d7 = _0x4f04cf();
|
||
if (!_0x2052d7) {
|
||
return {
|
||
ok: false,
|
||
msg: "未绑定卡密"
|
||
};
|
||
}
|
||
try {
|
||
const _0x42f7f3 = await fetch(_0x7ac307 + "/api/verify", {
|
||
method: "POST",
|
||
credentials: "omit",
|
||
headers: {
|
||
"Content-Type": "application/json"
|
||
},
|
||
body: JSON.stringify({
|
||
key: _0x2052d7,
|
||
installId: _0x15e1fe
|
||
}),
|
||
__dksqInternal: true
|
||
});
|
||
if (!_0x42f7f3.ok) {
|
||
return {
|
||
ok: false,
|
||
msg: "验证服务不可达,请稍后再试"
|
||
};
|
||
}
|
||
const _0x4e4648 = await _0x42f7f3.json();
|
||
if (_0x4e4648 && _0x4e4648.ok) {
|
||
return {
|
||
ok: true,
|
||
expiresAt: _0x4e4648.expiresAt,
|
||
daysLeft: _0x4e4648.daysLeft
|
||
};
|
||
}
|
||
const _0x3d06fd = _0x4e4648 && _0x4e4648.reason ? String(_0x4e4648.reason) : "";
|
||
const _0x2f2936 = {
|
||
not_found: "卡密不存在",
|
||
disabled: "卡密已禁用",
|
||
expired: "卡密已过期",
|
||
bound_other: "卡密已绑定其他环境,请联系卖家解绑"
|
||
};
|
||
return {
|
||
ok: false,
|
||
msg: _0x2f2936[_0x3d06fd] || "卡密校验失败:" + _0x3d06fd
|
||
};
|
||
} catch (_0x55f014) {
|
||
return {
|
||
ok: false,
|
||
msg: "验证服务不可达,请稍后再试"
|
||
};
|
||
}
|
||
}
|
||
}
|
||
const _0x11317a = {
|
||
lastSavePayload: null,
|
||
lastSqduuid: null,
|
||
running: false,
|
||
logs: [],
|
||
emsgCtrl: "",
|
||
qpfsCtx: null,
|
||
unitMap: null,
|
||
faceOnly: false,
|
||
allowNativeCommit: false
|
||
};
|
||
const _0x54488c = _0x17fbc8 => new Promise(_0x27e89e => setTimeout(_0x27e89e, _0x17fbc8));
|
||
const _0x349118 = ["saveFpdksqxx", "checkOnSaveFpdksqxx", "checkOnCommitFpdksq", "commitFpdksq", "queryBigJSON", "listFpdksqxx", "getDkfpzlxx", "listGmfxx", "getKsyskxx", "loadYnskxx", "listQpfs", "checkDqdldj", "getUserInfo", "wszlzx", "getSsflpzxxByHwlwmc", "listHwlwbmDzx", "getHwlwSl", "getJldw", "getDqDlrxx", "getDksqrkxx", "getGrsdsZspm", "getSsflpzxxByBq", "getkpggmflh", "localSystemBefore"];
|
||
const _0x1b0f08 = _0x9ccf0e => _0x349118.some(_0x21aa8b => _0x9ccf0e.includes(_0x21aa8b));
|
||
function _0x4bb241(_0x1e5ed4, _0x53465e) {
|
||
{
|
||
_0x11317a.logs.unshift({
|
||
t: new Date().toLocaleTimeString("zh-CN", {
|
||
hour12: false
|
||
}),
|
||
msg: _0x1e5ed4,
|
||
kind: _0x53465e || "info"
|
||
});
|
||
if (_0x11317a.logs.length > 300) {
|
||
_0x11317a.logs.length = 300;
|
||
}
|
||
_0x43b54d();
|
||
}
|
||
}
|
||
const _0x291cbe = {
|
||
entries: [],
|
||
seq: 0
|
||
};
|
||
function _0x322e42(_0x5a4cd7) {
|
||
{
|
||
if (_0x5a4cd7 === null || _0x5a4cd7 === undefined) {
|
||
return {
|
||
text: _0x5a4cd7 === undefined ? "" : String(_0x5a4cd7),
|
||
truncated: false,
|
||
originalLength: 0
|
||
};
|
||
}
|
||
const _0x34906f = String(_0x5a4cd7);
|
||
if (_0x34906f.length > _0x35cc89.maxBodyLen) {
|
||
return {
|
||
text: _0x34906f.slice(0, _0x35cc89.maxBodyLen),
|
||
truncated: true,
|
||
originalLength: _0x34906f.length
|
||
};
|
||
}
|
||
return {
|
||
text: _0x34906f,
|
||
truncated: false,
|
||
originalLength: _0x34906f.length
|
||
};
|
||
}
|
||
}
|
||
function _0x581012(_0xf3843f) {
|
||
{
|
||
_0xf3843f.id = ++_0x291cbe.seq + "-" + Math.random().toString(16).slice(2, 10);
|
||
_0xf3843f.ts = Date.now();
|
||
_0xf3843f.tabId = null;
|
||
_0xf3843f.title = document.title || "";
|
||
_0x291cbe.entries.push(_0xf3843f);
|
||
if (_0x291cbe.entries.length > _0x35cc89.maxEntries) {
|
||
_0x291cbe.entries.splice(0, _0x291cbe.entries.length - _0x35cc89.maxEntries);
|
||
}
|
||
_0x53cc24();
|
||
}
|
||
}
|
||
function _0x50efc9(_0x28b049, _0x12e723, _0x11dd03, _0x4d9586, _0x1e3cb3) {
|
||
_0x581012({
|
||
type: _0x28b049,
|
||
level: _0x12e723 || "info",
|
||
url: _0x11dd03 || location.href,
|
||
message: _0x4d9586 || "",
|
||
data: _0x1e3cb3 || {}
|
||
});
|
||
}
|
||
function _0x223873(_0x407df2) {
|
||
{
|
||
const _0x30e773 = {};
|
||
try {
|
||
_0x407df2.forEach((_0x42c528, _0x39ca4e) => {
|
||
_0x30e773[_0x39ca4e] = _0x42c528;
|
||
});
|
||
} catch (_0x127324) {}
|
||
return _0x30e773;
|
||
}
|
||
}
|
||
function _0x19bc48(_0x236a4c) {
|
||
{
|
||
const _0x3a578e = {};
|
||
String(_0x236a4c || "").split(/[\r\n]+/).forEach(_0x4cd526 => {
|
||
{
|
||
const _0x5a52b6 = _0x4cd526.indexOf(":");
|
||
if (_0x5a52b6 > 0) {
|
||
_0x3a578e[_0x4cd526.slice(0, _0x5a52b6).trim()] = _0x4cd526.slice(_0x5a52b6 + 1).trim();
|
||
}
|
||
}
|
||
});
|
||
return _0x3a578e;
|
||
}
|
||
}
|
||
function _0x5b24b3(_0x5a7454) {
|
||
let _0x1d0436 = 5381;
|
||
const _0x37334f = String(_0x5a7454 || "");
|
||
for (let _0x47e6b9 = 0; _0x47e6b9 < _0x37334f.length; _0x47e6b9++) {
|
||
_0x1d0436 = (_0x1d0436 << 5) + _0x1d0436 ^ _0x37334f.charCodeAt(_0x47e6b9);
|
||
}
|
||
return (_0x1d0436 >>> 0).toString(16);
|
||
}
|
||
function _0x49ac5c(_0x2757d8) {
|
||
{
|
||
const _0x315f6d = {};
|
||
try {
|
||
{
|
||
for (let _0x346e6f = 0; _0x346e6f < _0x2757d8.length; _0x346e6f++) {
|
||
const _0x4c7c60 = _0x2757d8.key(_0x346e6f);
|
||
const _0x4678e3 = String(_0x2757d8.getItem(_0x4c7c60) || "");
|
||
_0x315f6d[_0x4c7c60] = {
|
||
len: _0x4678e3.length,
|
||
hash: _0x5b24b3(_0x4678e3)
|
||
};
|
||
}
|
||
}
|
||
} catch (_0x38c524) {}
|
||
return _0x315f6d;
|
||
}
|
||
}
|
||
function _0x870daa(_0xa272ba, _0xf2b895) {
|
||
return;
|
||
_0x50efc9("storage", "info", _0xf2b895, _0xa272ba, {
|
||
local: _0x49ac5c(localStorage),
|
||
session: _0x49ac5c(sessionStorage)
|
||
});
|
||
}
|
||
function _0x16c7de(_0x57387c, _0x1079c5, _0xf997d7) {
|
||
_0x50efc9("navigation", "info", _0x1079c5, _0x57387c + " " + _0x1079c5, Object.assign({
|
||
phase: _0x57387c,
|
||
frameId: 0,
|
||
parentFrameId: -1,
|
||
transitionType: "",
|
||
transitionQualifiers: [],
|
||
error: ""
|
||
}, _0xf997d7 || {}));
|
||
}
|
||
addEventListener("DOMContentLoaded", () => _0x16c7de("导航完成", location.href, {
|
||
transitionType: "reload"
|
||
}));
|
||
addEventListener("pageshow", _0x1e3b6f => {
|
||
if (!_0x1e3b6f.persisted) {
|
||
_0x16c7de("导航完成", location.href);
|
||
}
|
||
});
|
||
(function _0x2bae6f() {
|
||
const _0x56b923 = history.pushState;
|
||
const _0x5a6493 = history.replaceState;
|
||
history.pushState = function () {
|
||
const _0x2e2bc6 = arguments[2] ? String(arguments[2]) : location.href;
|
||
_0x16c7de("导航提交", _0x2e2bc6, {
|
||
transitionType: "pushState"
|
||
});
|
||
return _0x56b923.apply(this, arguments);
|
||
};
|
||
history.replaceState = function () {
|
||
const _0xb95707 = arguments[2] ? String(arguments[2]) : location.href;
|
||
_0x16c7de("导航提交", _0xb95707, {
|
||
transitionType: "replaceState"
|
||
});
|
||
return _0x5a6493.apply(this, arguments);
|
||
};
|
||
addEventListener("popstate", () => _0x16c7de("导航提交", location.href, {
|
||
transitionType: "popstate"
|
||
}));
|
||
const _0x5a1c38 = window.open;
|
||
window.open = function () {
|
||
{
|
||
try {
|
||
{
|
||
if (_0x11317a.faceOnly) {
|
||
_0x4bb241("刷脸窗口 URL: " + String(arguments[0] || ""), "net");
|
||
}
|
||
}
|
||
} catch (_0x2b84af) {}
|
||
return _0x5a1c38 ? _0x5a1c38.apply(this, arguments) : null;
|
||
}
|
||
};
|
||
addEventListener("hashchange", () => _0x16c7de("导航提交", location.href, {
|
||
transitionType: "hashchange"
|
||
}));
|
||
})();
|
||
(function _0xf5f076() {
|
||
const _0x80065b = ["log", "info", "warn", "error", "debug"];
|
||
_0x80065b.forEach(_0x44efe4 => {
|
||
{
|
||
const _0x507ca2 = console[_0x44efe4];
|
||
console[_0x44efe4] = function () {
|
||
{
|
||
try {
|
||
{
|
||
const _0x1c6525 = Array.prototype.slice.call(arguments).map(_0x31abc8 => {
|
||
try {
|
||
{
|
||
return typeof _0x31abc8 === "object" ? JSON.stringify(_0x31abc8) : String(_0x31abc8);
|
||
}
|
||
} catch (_0x4f0361) {
|
||
return String(_0x31abc8);
|
||
}
|
||
}).join(" ");
|
||
const _0x104dc9 = new Error().stack || "";
|
||
const _0x41c970 = (_0x104dc9.split("\n")[2] || "").trim();
|
||
_0x50efc9("console", _0x44efe4 === "error" ? "error" : _0x44efe4 === "warn" ? "warn" : "info", location.href, "console." + _0x44efe4, {
|
||
method: _0x44efe4,
|
||
messages: _0x1c6525.slice(0, 2000),
|
||
stack: _0x41c970.slice(0, 500),
|
||
file: "",
|
||
line: 0,
|
||
col: 0,
|
||
isIframe: false
|
||
});
|
||
}
|
||
} catch (_0x25a1da) {}
|
||
return _0x507ca2.apply(this, arguments);
|
||
}
|
||
};
|
||
}
|
||
});
|
||
window.addEventListener("error", _0x3b3446 => {
|
||
_0x50efc9("error", "error", location.href, _0x3b3446.message || "window error", {
|
||
method: "uncaught",
|
||
messages: String(_0x3b3446.message || "").slice(0, 2000),
|
||
stack: String(_0x3b3446.error && _0x3b3446.error.stack || "").slice(0, 2000),
|
||
file: _0x3b3446.filename || "",
|
||
line: _0x3b3446.lineno || 0,
|
||
col: _0x3b3446.colno || 0,
|
||
isIframe: false
|
||
});
|
||
});
|
||
window.addEventListener("unhandledrejection", _0x36f0f9 => {
|
||
_0x50efc9("error", "error", location.href, "unhandledrejection", {
|
||
method: "unhandledrejection",
|
||
messages: String(_0x36f0f9.reason || "").slice(0, 2000),
|
||
stack: "",
|
||
file: "",
|
||
line: 0,
|
||
col: 0,
|
||
isIframe: false
|
||
});
|
||
});
|
||
})();
|
||
(function _0x26a9fb() {
|
||
{
|
||
try {
|
||
{
|
||
let _0x39440b = Object.getOwnPropertyDescriptor(Document.prototype, "cookie");
|
||
_0x39440b && _0x39440b.set && Object.defineProperty(Document.prototype, "cookie", {
|
||
get: _0x39440b.get,
|
||
set: function (_0x45c3c0) {
|
||
try {
|
||
_0x50efc9("cookie", "info", location.href, "cookie set", {
|
||
change: "set",
|
||
value: String(_0x45c3c0).split(";")[0].slice(0, 300)
|
||
});
|
||
} catch (_0x39a315) {}
|
||
return _0x39440b.set.call(this, _0x45c3c0);
|
||
},
|
||
configurable: true
|
||
});
|
||
}
|
||
} catch (_0x5390c2) {}
|
||
}
|
||
})();
|
||
const _0x58edda = window.fetch;
|
||
function _0x51a0ef(_0x303424, _0x5170f5) {
|
||
{
|
||
if (!_0x35cc89.bypassPopup || !_0x303424 || !_0x3e7c92 && !_0x108366) {
|
||
return _0x303424;
|
||
}
|
||
let _0x2d6c56;
|
||
try {
|
||
_0x2d6c56 = JSON.parse(_0x303424);
|
||
} catch (_0x34a305) {
|
||
return _0x303424;
|
||
}
|
||
const _0x5a46b7 = _0x2d6c56 && _0x2d6c56.Response && _0x2d6c56.Response.Data;
|
||
if (!_0x5a46b7 || _0x5a46b7.returnCode === undefined) {
|
||
return _0x303424;
|
||
}
|
||
const _0x33d9a1 = String(_0x5a46b7.returnCode);
|
||
const _0x2772c3 = _0x33d9a1 !== "0" && _0x33d9a1 !== "1" && /^-\d+$/.test(_0x33d9a1);
|
||
if (!_0x2772c3) {
|
||
return _0x303424;
|
||
}
|
||
const _0x4c4f7b = {
|
||
returnCode: _0x5a46b7.returnCode,
|
||
returnMsg: _0x5a46b7.returnMsg,
|
||
checkResult: _0x5a46b7.checkResult
|
||
};
|
||
_0x5a46b7.returnCode = "0";
|
||
_0x5a46b7.returnMsg = "";
|
||
_0x5a46b7.checkResult = [];
|
||
_0x50efc9("tamper", "warn", _0x5170f5, "风险弹窗已屏蔽: rc " + _0x5a46b7.returnCode + " -> 0", {
|
||
kind: "checkOnCommitFpdksq",
|
||
original: _0x4c4f7b,
|
||
note: "页面金额未做任何改写"
|
||
});
|
||
_0x4bb241("屏蔽风险弹窗: 服务端 rc=" + _0x5a46b7.returnCode + " 已改写为 0,页面继续提交", "warn");
|
||
return JSON.stringify(_0x2d6c56);
|
||
}
|
||
}
|
||
window.fetch = async function (_0x5e1b8e, _0x1a7b4d) {
|
||
const _0x3b9376 = typeof _0x5e1b8e === "string" ? _0x5e1b8e : _0x5e1b8e && _0x5e1b8e.url || "";
|
||
const _0x171d1c = !!(_0x1a7b4d && _0x1a7b4d.__dksqInternal);
|
||
if (!_0x171d1c && _0x11317a.allowNativeCommit && !_0x11317a.faceOnly && _0x3b9376.includes("commitFpdksq")) {
|
||
_0x11317a.allowNativeCommit = false;
|
||
_0x4bb241("研究放行: 本次页面原生提交放行, 原生判决将记入日志", "warn");
|
||
} else {}
|
||
if (_0x11317a.faceOnly && !_0x171d1c && _0x3b9376.includes("commitFpdksq")) {
|
||
_0x4bb241("刷脸模式: 已拦截页面真实提交(fetch), 请求未发出, 服务端无记录", "warn");
|
||
_0x50efc9("network", "warn", _0x3b9376, "POST [刷脸模式-已拦截] " + _0x3b9376, {
|
||
method: "POST",
|
||
statusCode: 0,
|
||
resourceType: "fetch",
|
||
blocked: true,
|
||
duration: 0,
|
||
fromCache: false,
|
||
error: "blocked-faceOnly",
|
||
initiator: location.href,
|
||
ip: "",
|
||
documentUrl: location.href,
|
||
requestBody: Object.assign({
|
||
kind: "raw"
|
||
}, _0x322e42(_0x1a7b4d && _0x1a7b4d.body ? String(_0x1a7b4d.body) : "")),
|
||
requestHeaders: {},
|
||
cookieHeader: ""
|
||
});
|
||
return new Response(JSON.stringify({
|
||
Response: {
|
||
Data: {
|
||
returnCode: "-1",
|
||
returnMsg: "刷脸模式:提交已被插件拦截,未送达服务端"
|
||
}
|
||
}
|
||
}), {
|
||
status: 200,
|
||
headers: {
|
||
"Content-Type": "application/json;charset=UTF-8"
|
||
}
|
||
});
|
||
}
|
||
if (!_0x171d1c && _0x35cc89.autoMode && _0x3b4f39 && !_0x11317a.faceOnly && _0x3b9376.includes("commitFpdksq")) {
|
||
{
|
||
_0x4bb241("自动模式: 已接管页面提交(fetch), 开始自动绕过...", "warn");
|
||
_0x50efc9("network", "warn", _0x3b9376, "POST [自动模式-已接管] " + _0x3b9376, {
|
||
method: "POST",
|
||
statusCode: 0,
|
||
resourceType: "fetch",
|
||
blocked: true,
|
||
duration: 0,
|
||
fromCache: false,
|
||
error: "tookover-autoMode",
|
||
initiator: location.href,
|
||
ip: "",
|
||
documentUrl: location.href,
|
||
requestBody: Object.assign({
|
||
kind: "raw"
|
||
}, _0x322e42(_0x1a7b4d && _0x1a7b4d.body ? String(_0x1a7b4d.body) : "")),
|
||
requestHeaders: {},
|
||
cookieHeader: ""
|
||
});
|
||
const _0x19aa1f = await _0x197f2e();
|
||
const _0x5be1ea = _0x19aa1f.ok ? JSON.stringify(_0x19aa1f.cj) : JSON.stringify({
|
||
Response: {
|
||
Data: {
|
||
returnCode: "-1",
|
||
returnMsg: "全球通自动开票: " + (_0x19aa1f.msg || "失败, 详见面板日志")
|
||
}
|
||
}
|
||
});
|
||
return new Response(_0x5be1ea, {
|
||
status: 200,
|
||
headers: {
|
||
"Content-Type": "application/json;charset=UTF-8"
|
||
}
|
||
});
|
||
}
|
||
} else {
|
||
if (!_0x171d1c && !_0x11317a.faceOnly && _0x3e7c92 && !_0x3b4f39 && _0x3b9376.includes("commitFpdksq")) {
|
||
{
|
||
_0x4bb241("研究防线: 已阻止页面原生提交(" + _0x51ddf6 + " 未开放自动模式), 请用面板【一键开票】, 或先开刷脸模式完成认证", "warn");
|
||
_0x50efc9("network", "warn", _0x3b9376, "POST [研究防线-已阻止] " + _0x3b9376, {
|
||
method: "POST",
|
||
statusCode: 0,
|
||
resourceType: "fetch",
|
||
blocked: true,
|
||
duration: 0,
|
||
fromCache: false,
|
||
error: "blocked-researchGuard",
|
||
initiator: location.href,
|
||
ip: "",
|
||
documentUrl: location.href,
|
||
requestBody: Object.assign({
|
||
kind: "raw"
|
||
}, _0x322e42(_0x1a7b4d && _0x1a7b4d.body ? String(_0x1a7b4d.body) : "")),
|
||
requestHeaders: {},
|
||
cookieHeader: ""
|
||
});
|
||
return new Response(JSON.stringify({
|
||
Response: {
|
||
Data: {
|
||
returnCode: "-1",
|
||
returnMsg: "全球通: 当前地区处于研究期, 页面原生提交已被阻止。请用插件面板【一键开票】(先开刷脸模式完成刷脸)"
|
||
}
|
||
}
|
||
}), {
|
||
status: 200,
|
||
headers: {
|
||
"Content-Type": "application/json;charset=UTF-8"
|
||
}
|
||
});
|
||
}
|
||
}
|
||
}
|
||
const _0x4482bd = Date.now();
|
||
let _0x473d86 = "";
|
||
try {
|
||
if (_0x1a7b4d && _0x1a7b4d.body !== undefined && _0x1a7b4d.body !== null) {
|
||
{
|
||
if (_0x1a7b4d.body instanceof FormData) {
|
||
const _0x166ae7 = [];
|
||
_0x1a7b4d.body.forEach(function (_0x48e505, _0x1d31b7) {
|
||
_0x166ae7.push(typeof _0x48e505 === "string" ? _0x1d31b7 + ":" + String(_0x48e505).slice(0, 60) : _0x1d31b7);
|
||
});
|
||
_0x473d86 = JSON.stringify({
|
||
kind: "formdata",
|
||
names: _0x166ae7
|
||
});
|
||
} else {
|
||
_0x473d86 = typeof _0x1a7b4d.body === "string" ? _0x1a7b4d.body : String(_0x1a7b4d.body);
|
||
}
|
||
}
|
||
}
|
||
} catch (_0xc1c32e) {}
|
||
try {
|
||
{
|
||
if (!_0x171d1c && _0x3b9376.includes("saveFpdksqxx") && _0x1a7b4d && typeof _0x1a7b4d.body === "string" && _0x11317a.emsgCtrl) {
|
||
const _0x290a82 = JSON.parse(_0x1a7b4d.body);
|
||
if (_0x290a82 && typeof _0x290a82 === "object") {
|
||
let _0x24e192 = false;
|
||
!_0x290a82.emsgCtrl && (_0x290a82.emsgCtrl = _0x11317a.emsgCtrl, _0x24e192 = true);
|
||
!_0x290a82.EmsgCtrl && (_0x290a82.EmsgCtrl = _0x11317a.emsgCtrl, _0x24e192 = true);
|
||
_0x24e192 && (_0x1a7b4d.body = JSON.stringify(_0x290a82), _0x473d86 = _0x1a7b4d.body);
|
||
}
|
||
}
|
||
}
|
||
} catch (_0x3fbd95) {}
|
||
try {
|
||
{
|
||
if (!_0x171d1c && _0x3b9376.includes("saveFpdksqxx") && _0x11317a.emsgCtrl) {
|
||
{
|
||
_0x1a7b4d = _0x1a7b4d || {};
|
||
_0x1a7b4d.headers = _0x1a7b4d.headers || {};
|
||
typeof _0x1a7b4d.headers.set === "function" && (_0x1a7b4d.headers.set("EmsgCtrl", _0x11317a.emsgCtrl), _0x1a7b4d.headers.set("emsgCtrl", _0x11317a.emsgCtrl));
|
||
}
|
||
}
|
||
}
|
||
} catch (_0x145e9d) {}
|
||
let _0x80639 = await _0x58edda.apply(this, arguments);
|
||
const _0x49a8d0 = Date.now() - _0x4482bd;
|
||
try {
|
||
const _0x1f0a1c = _0x80639.headers.get("content-type") || "";
|
||
const _0x215ce0 = /json/i.test(_0x1f0a1c);
|
||
const _0x1b20b6 = _0x35cc89.verbose || _0x1b0f08(_0x3b9376);
|
||
let _0x39022d = {};
|
||
try {
|
||
if (_0x1a7b4d && _0x1a7b4d.headers) {
|
||
if (typeof _0x1a7b4d.headers.forEach === "function") {
|
||
_0x1a7b4d.headers.forEach((_0x1a360d, _0x3dedd3) => {
|
||
_0x39022d[_0x3dedd3] = _0x1a360d;
|
||
});
|
||
} else {
|
||
if (typeof _0x1a7b4d.headers === "object") {
|
||
for (const _0x36f915 in _0x1a7b4d.headers) _0x39022d[_0x36f915] = _0x1a7b4d.headers[_0x36f915];
|
||
}
|
||
}
|
||
}
|
||
} catch (_0x36e3a7) {}
|
||
const _0x3f650e = {
|
||
method: _0x1a7b4d && _0x1a7b4d.method || (typeof _0x5e1b8e === "string" ? "GET" : _0x5e1b8e && _0x5e1b8e.method || "GET"),
|
||
statusCode: _0x80639.status,
|
||
resourceType: "fetch",
|
||
duration: _0x49a8d0,
|
||
fromCache: false,
|
||
error: "",
|
||
initiator: location.href,
|
||
ip: "",
|
||
documentUrl: location.href,
|
||
requestBody: _0x473d86 ? Object.assign({
|
||
kind: "raw"
|
||
}, _0x322e42(_0x473d86)) : {
|
||
kind: "raw",
|
||
text: "",
|
||
truncated: false,
|
||
originalLength: 0
|
||
},
|
||
requestHeaders: _0x39022d,
|
||
responseHeaders: _0x223873(_0x80639.headers),
|
||
cookieHeader: String(document.cookie || "").slice(0, 2000)
|
||
};
|
||
_0x50efc9("network", _0x80639.status >= 400 ? "error" : "info", _0x3b9376, _0x3f650e.method + " " + _0x80639.status + " " + _0x3b9376, _0x3f650e);
|
||
if (_0x1b0f08(_0x3b9376)) {
|
||
_0x870daa("fetch响应后 " + _0x3b9376, _0x3b9376);
|
||
}
|
||
if (!_0x171d1c && _0x215ce0 && _0x3b9376.includes("checkOnCommitFpdksq")) {
|
||
const _0x18a836 = await _0x80639.clone().text();
|
||
const _0x2a07d0 = _0x322e42(_0x18a836);
|
||
_0x50efc9("response", "info", _0x3b9376, "响应体(原始) " + _0x80639.status + " " + _0x3b9376, {
|
||
method: _0x3f650e.method,
|
||
statusCode: _0x80639.status,
|
||
contentType: _0x1f0a1c,
|
||
responseBody: _0x2a07d0.text,
|
||
truncated: _0x2a07d0.truncated,
|
||
skipped: false,
|
||
reason: "",
|
||
originalLength: _0x2a07d0.originalLength,
|
||
isIframe: false,
|
||
source: "fetch"
|
||
});
|
||
const _0x458ba5 = _0x51a0ef(_0x18a836, _0x3b9376);
|
||
if (_0x458ba5 !== _0x18a836) {
|
||
return new Response(_0x458ba5, {
|
||
status: _0x80639.status,
|
||
statusText: _0x80639.statusText,
|
||
headers: _0x80639.headers
|
||
});
|
||
}
|
||
return _0x80639;
|
||
}
|
||
if (_0x1b20b6 && (_0x215ce0 || /text|xml/i.test(_0x1f0a1c))) {
|
||
const _0x5097fd = await _0x80639.clone().text();
|
||
const _0x1bd6f1 = _0x322e42(_0x5097fd);
|
||
_0x50efc9("response", "info", _0x3b9376, "响应体 " + _0x80639.status + " " + _0x3b9376, {
|
||
method: _0x3f650e.method,
|
||
statusCode: _0x80639.status,
|
||
contentType: _0x1f0a1c,
|
||
responseBody: _0x1bd6f1.text,
|
||
truncated: _0x1bd6f1.truncated,
|
||
skipped: false,
|
||
reason: "",
|
||
originalLength: _0x1bd6f1.originalLength,
|
||
isIframe: false,
|
||
source: "fetch"
|
||
});
|
||
}
|
||
if (_0x215ce0 && _0x1b0f08(_0x3b9376)) {
|
||
{
|
||
const _0x65f715 = await _0x80639.clone().text();
|
||
let _0x583a3d;
|
||
try {
|
||
_0x583a3d = JSON.parse(_0x65f715);
|
||
} catch (_0x1bf96e) {
|
||
{
|
||
return _0x80639;
|
||
}
|
||
}
|
||
const _0xe5eaec = _0x583a3d && _0x583a3d.Response && _0x583a3d.Response.Data ? _0x583a3d.Response.Data : {};
|
||
if (_0x3b9376.includes("getJldw")) {
|
||
try {
|
||
{
|
||
const _0x43a6b0 = _0x34af71(_0x583a3d).list || [];
|
||
if (_0x43a6b0.length) {
|
||
const _0x7aeb6b = Object.assign({}, _0x5b8f79);
|
||
_0x43a6b0.forEach(_0xc83a26 => {
|
||
{
|
||
if (_0xc83a26.JLDWMC && _0xc83a26.JLDW_DM) {
|
||
_0x7aeb6b[_0xc83a26.JLDWMC] = _0xc83a26.JLDW_DM;
|
||
}
|
||
}
|
||
});
|
||
_0x11317a.unitMap = _0x7aeb6b;
|
||
_0x5df6b9();
|
||
_0x4bb241("单位字典: getJldw 抓到 " + _0x43a6b0.length + " 个编码(根治单位编码未知)", "net");
|
||
}
|
||
}
|
||
} catch (_0x19ae95) {}
|
||
} else {
|
||
if (_0x3b9376.includes("checkOnSaveFpdksqxx")) {
|
||
{
|
||
_0xe5eaec.emsgCtrl && (_0x11317a.emsgCtrl = _0xe5eaec.emsgCtrl, _0x4bb241("事前校验凭证 emsgCtrl 已捕获(fetch)", "net"));
|
||
}
|
||
} else {
|
||
if (_0x3b9376.includes("saveFpdksqxx")) {
|
||
{
|
||
if (_0xe5eaec.sqduuid) {
|
||
_0x11317a.lastSqduuid = _0xe5eaec.sqduuid;
|
||
}
|
||
_0x4bb241("页面保存 -> sqduuid=" + (_0xe5eaec.sqduuid || "?") + " rc=" + (_0xe5eaec.returnCode === undefined ? "?" : _0xe5eaec.returnCode), "net");
|
||
String(_0xe5eaec.returnCode) === "-53" && _0x4bb241("页面保存被 -53 事前风控拦(凭证已回传仍被拒=真实风控): 先清理【代开发票查询】里“审核中/拟稿中”旧记录, 再点【一键开票】走小金额过闸", "block");
|
||
}
|
||
} else {
|
||
if (_0x3b9376.includes("checkOnCommitFpdksq")) {
|
||
const _0x4de77e = (_0xe5eaec.checkResult || []).map(_0x19fd9c => _0x19fd9c.zbbm + " " + (_0x19fd9c.title || "")).join(" | ");
|
||
_0x4bb241("页面预检 rc=" + _0xe5eaec.returnCode + " " + (_0xe5eaec.returnMsg || "") + " je=" + (_0xe5eaec.dksqje || "?") + " " + _0x4de77e, _0xe5eaec.returnCode === "-2" ? "block" : "ok");
|
||
window.dispatchEvent(new CustomEvent("__dksq_check", {
|
||
detail: _0xe5eaec
|
||
}));
|
||
} else {
|
||
if (_0x3b9376.includes("commitFpdksq")) {
|
||
const _0x5b548a = _0xe5eaec.fphm || _0xe5eaec.data && _0xe5eaec.data.fphm || "";
|
||
const _0x52b804 = (_0xe5eaec.checkResult || []).map(_0x3cb5b8 => _0x3cb5b8.zbbm + " " + (_0x3cb5b8.title || "")).join(" | ");
|
||
_0x4bb241("页面提交 rc=" + (_0xe5eaec.returnCode === undefined ? "?" : _0xe5eaec.returnCode) + " fphm=" + _0x5b548a + " " + _0x52b804, _0x5b548a ? "ok" : "block");
|
||
window.dispatchEvent(new CustomEvent("__dksq_commit", {
|
||
detail: _0xe5eaec
|
||
}));
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
} catch (_0x5d6be0) {}
|
||
return _0x80639;
|
||
};
|
||
const _0x1aa267 = XMLHttpRequest.prototype.open;
|
||
const _0x34f81e = XMLHttpRequest.prototype.send;
|
||
const _0x5a4f96 = XMLHttpRequest.prototype.setRequestHeader;
|
||
XMLHttpRequest.prototype.open = function (_0x4815dd, _0x395642) {
|
||
this.__dksqU = _0x395642;
|
||
this.__dksqM = _0x4815dd;
|
||
return _0x1aa267.apply(this, arguments);
|
||
};
|
||
XMLHttpRequest.prototype.setRequestHeader = function (_0x5ef84f, _0xf91c77) {
|
||
try {
|
||
{
|
||
if (!this.__dksqH) {
|
||
this.__dksqH = {};
|
||
}
|
||
this.__dksqH[String(_0x5ef84f)] = String(_0xf91c77);
|
||
}
|
||
} catch (_0x2eff59) {}
|
||
return _0x5a4f96.apply(this, arguments);
|
||
};
|
||
XMLHttpRequest.prototype.send = function (_0x151ed6) {
|
||
const _0x2bc902 = this;
|
||
const _0x2db71e = Date.now();
|
||
let _0xdfd887 = "";
|
||
try {
|
||
{
|
||
if (typeof _0x151ed6 === "string") {
|
||
_0xdfd887 = _0x151ed6;
|
||
} else {
|
||
if (_0x151ed6 instanceof FormData) {
|
||
{
|
||
const _0x3fd563 = [];
|
||
_0x151ed6.forEach(function (_0x3ffe6a, _0x59f5db) {
|
||
{
|
||
_0x3fd563.push(typeof _0x3ffe6a === "string" ? _0x59f5db + ":" + String(_0x3ffe6a).slice(0, 60) : _0x59f5db);
|
||
}
|
||
});
|
||
_0xdfd887 = JSON.stringify({
|
||
kind: "formdata",
|
||
names: _0x3fd563
|
||
});
|
||
}
|
||
} else {
|
||
if (_0x151ed6 !== undefined && _0x151ed6 !== null) {
|
||
_0xdfd887 = String(_0x151ed6);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
} catch (_0x37b35b) {}
|
||
if (!_0x11317a.faceOnly && _0x11317a.allowNativeCommit && String(_0x2bc902.__dksqU || "").includes("commitFpdksq")) {
|
||
{
|
||
_0x11317a.allowNativeCommit = false;
|
||
_0x4bb241("研究放行: 本次页面原生提交放行, 原生判决将记入日志", "warn");
|
||
}
|
||
} else {}
|
||
if (_0x11317a.faceOnly && String(_0x2bc902.__dksqU || "").includes("commitFpdksq")) {
|
||
{
|
||
_0x4bb241("刷脸模式: 已拦截页面真实提交(XHR), 请求未发出, 服务端无记录", "warn");
|
||
_0x50efc9("network", "warn", String(_0x2bc902.__dksqU || ""), "POST [刷脸模式-已拦截] " + String(_0x2bc902.__dksqU || ""), {
|
||
method: _0x2bc902.__dksqM || "POST",
|
||
statusCode: 0,
|
||
resourceType: "xmlhttprequest",
|
||
blocked: true,
|
||
duration: 0,
|
||
fromCache: false,
|
||
error: "blocked-faceOnly",
|
||
initiator: location.href,
|
||
ip: "",
|
||
documentUrl: location.href,
|
||
requestBody: Object.assign({
|
||
kind: "raw"
|
||
}, _0x322e42(typeof _0x151ed6 === "string" ? _0x151ed6 : "")),
|
||
requestHeaders: {},
|
||
cookieHeader: ""
|
||
});
|
||
try {
|
||
{
|
||
const _0x4969d1 = JSON.stringify({
|
||
Response: {
|
||
Data: {
|
||
returnCode: "-1",
|
||
returnMsg: "刷脸模式:提交已被插件拦截,未送达服务端"
|
||
}
|
||
}
|
||
});
|
||
Object.defineProperty(_0x2bc902, "readyState", {
|
||
configurable: true,
|
||
get: () => 4
|
||
});
|
||
Object.defineProperty(_0x2bc902, "status", {
|
||
configurable: true,
|
||
get: () => 200
|
||
});
|
||
Object.defineProperty(_0x2bc902, "responseText", {
|
||
configurable: true,
|
||
get: () => _0x4969d1
|
||
});
|
||
Object.defineProperty(_0x2bc902, "response", {
|
||
configurable: true,
|
||
get: () => _0x4969d1
|
||
});
|
||
}
|
||
} catch (_0x40ecc4) {}
|
||
setTimeout(() => {
|
||
try {
|
||
_0x2bc902.dispatchEvent(new Event("readystatechange"));
|
||
} catch (_0x22da4f) {}
|
||
try {
|
||
{
|
||
_0x2bc902.dispatchEvent(new Event("load"));
|
||
}
|
||
} catch (_0x4594a5) {}
|
||
try {
|
||
_0x2bc902.dispatchEvent(new Event("loadend"));
|
||
} catch (_0x739c15) {}
|
||
try {
|
||
{
|
||
if (typeof _0x2bc902.onreadystatechange === "function") {
|
||
_0x2bc902.onreadystatechange();
|
||
}
|
||
}
|
||
} catch (_0x3d7f17) {}
|
||
try {
|
||
if (typeof _0x2bc902.onload === "function") {
|
||
_0x2bc902.onload();
|
||
}
|
||
} catch (_0x50f0e5) {}
|
||
try {
|
||
if (typeof _0x2bc902.onloadend === "function") {
|
||
_0x2bc902.onloadend();
|
||
}
|
||
} catch (_0x8c8e2b) {}
|
||
}, 50);
|
||
return;
|
||
}
|
||
}
|
||
if (!_0x11317a.faceOnly && _0x35cc89.autoMode && _0x3b4f39 && String(_0x2bc902.__dksqU || "").includes("commitFpdksq")) {
|
||
const _0x3b503f = String(_0x2bc902.__dksqU || "");
|
||
_0x4bb241("自动模式: 已接管页面提交(XHR), 开始自动绕过...", "warn");
|
||
_0x50efc9("network", "warn", _0x3b503f, "POST [自动模式-已接管] " + _0x3b503f, {
|
||
method: _0x2bc902.__dksqM || "POST",
|
||
statusCode: 0,
|
||
resourceType: "xmlhttprequest",
|
||
blocked: true,
|
||
duration: 0,
|
||
fromCache: false,
|
||
error: "tookover-autoMode",
|
||
initiator: location.href,
|
||
ip: "",
|
||
documentUrl: location.href,
|
||
requestBody: Object.assign({
|
||
kind: "raw"
|
||
}, _0x322e42(typeof _0x151ed6 === "string" ? _0x151ed6 : "")),
|
||
requestHeaders: {},
|
||
cookieHeader: ""
|
||
});
|
||
_0x197f2e().then(_0xa28a07 => {
|
||
const _0x2e9ddb = _0xa28a07.ok ? JSON.stringify(_0xa28a07.cj) : JSON.stringify({
|
||
Response: {
|
||
Data: {
|
||
returnCode: "-1",
|
||
returnMsg: "全球通自动开票: " + (_0xa28a07.msg || "失败, 详见面板日志")
|
||
}
|
||
}
|
||
});
|
||
try {
|
||
Object.defineProperty(_0x2bc902, "readyState", {
|
||
configurable: true,
|
||
get: () => 4
|
||
});
|
||
Object.defineProperty(_0x2bc902, "status", {
|
||
configurable: true,
|
||
get: () => 200
|
||
});
|
||
Object.defineProperty(_0x2bc902, "responseText", {
|
||
configurable: true,
|
||
get: () => _0x2e9ddb
|
||
});
|
||
Object.defineProperty(_0x2bc902, "response", {
|
||
configurable: true,
|
||
get: () => _0x2e9ddb
|
||
});
|
||
} catch (_0x7c0764) {}
|
||
try {
|
||
_0x2bc902.dispatchEvent(new Event("readystatechange"));
|
||
} catch (_0x418da3) {}
|
||
try {
|
||
_0x2bc902.dispatchEvent(new Event("load"));
|
||
} catch (_0x558db9) {}
|
||
try {
|
||
_0x2bc902.dispatchEvent(new Event("loadend"));
|
||
} catch (_0x2dbda6) {}
|
||
try {
|
||
if (typeof _0x2bc902.onreadystatechange === "function") {
|
||
_0x2bc902.onreadystatechange();
|
||
}
|
||
} catch (_0x3aa600) {}
|
||
try {
|
||
{
|
||
if (typeof _0x2bc902.onload === "function") {
|
||
_0x2bc902.onload();
|
||
}
|
||
}
|
||
} catch (_0x58f89b) {}
|
||
try {
|
||
{
|
||
if (typeof _0x2bc902.onloadend === "function") {
|
||
_0x2bc902.onloadend();
|
||
}
|
||
}
|
||
} catch (_0x368a4a) {}
|
||
});
|
||
return;
|
||
} else {
|
||
if (!_0x11317a.faceOnly && _0x3e7c92 && !_0x3b4f39 && String(_0x2bc902.__dksqU || "").includes("commitFpdksq")) {
|
||
{
|
||
const _0x3d96e2 = String(_0x2bc902.__dksqU || "");
|
||
_0x4bb241("研究防线: 已阻止页面原生提交(" + _0x51ddf6 + " 未开放自动模式), 请用面板【一键开票】, 或先开刷脸模式完成认证", "warn");
|
||
_0x50efc9("network", "warn", _0x3d96e2, "POST [研究防线-已阻止] " + _0x3d96e2, {
|
||
method: _0x2bc902.__dksqM || "POST",
|
||
statusCode: 0,
|
||
resourceType: "xmlhttprequest",
|
||
blocked: true,
|
||
duration: 0,
|
||
fromCache: false,
|
||
error: "blocked-researchGuard",
|
||
initiator: location.href,
|
||
ip: "",
|
||
documentUrl: location.href,
|
||
requestBody: Object.assign({
|
||
kind: "raw"
|
||
}, _0x322e42(typeof _0x151ed6 === "string" ? _0x151ed6 : "")),
|
||
requestHeaders: {},
|
||
cookieHeader: ""
|
||
});
|
||
const _0x1ee569 = JSON.stringify({
|
||
Response: {
|
||
Data: {
|
||
returnCode: "-1",
|
||
returnMsg: "全球通: 当前地区处于研究期, 页面原生提交已被阻止。请用插件面板【一键开票】(先开刷脸模式完成刷脸)"
|
||
}
|
||
}
|
||
});
|
||
try {
|
||
{
|
||
Object.defineProperty(_0x2bc902, "readyState", {
|
||
configurable: true,
|
||
get: () => 4
|
||
});
|
||
Object.defineProperty(_0x2bc902, "status", {
|
||
configurable: true,
|
||
get: () => 200
|
||
});
|
||
Object.defineProperty(_0x2bc902, "responseText", {
|
||
configurable: true,
|
||
get: () => _0x1ee569
|
||
});
|
||
Object.defineProperty(_0x2bc902, "response", {
|
||
configurable: true,
|
||
get: () => _0x1ee569
|
||
});
|
||
}
|
||
} catch (_0x1f7053) {}
|
||
try {
|
||
{
|
||
_0x2bc902.dispatchEvent(new Event("readystatechange"));
|
||
}
|
||
} catch (_0x5baac3) {}
|
||
try {
|
||
_0x2bc902.dispatchEvent(new Event("load"));
|
||
} catch (_0x475f66) {}
|
||
try {
|
||
_0x2bc902.dispatchEvent(new Event("loadend"));
|
||
} catch (_0x5431fc) {}
|
||
try {
|
||
if (typeof _0x2bc902.onreadystatechange === "function") {
|
||
_0x2bc902.onreadystatechange();
|
||
}
|
||
} catch (_0xa8b876) {}
|
||
try {
|
||
if (typeof _0x2bc902.onload === "function") {
|
||
_0x2bc902.onload();
|
||
}
|
||
} catch (_0x5177bf) {}
|
||
try {
|
||
if (typeof _0x2bc902.onloadend === "function") {
|
||
_0x2bc902.onloadend();
|
||
}
|
||
} catch (_0x1888ef) {}
|
||
return;
|
||
}
|
||
}
|
||
}
|
||
if (String(_0x2bc902.__dksqU || "").includes("saveFpdksqxx") && _0x11317a.emsgCtrl) {
|
||
try {
|
||
if (typeof _0x151ed6 === "string") {
|
||
{
|
||
const _0xff7089 = JSON.parse(_0x151ed6);
|
||
if (_0xff7089 && typeof _0xff7089 === "object") {
|
||
{
|
||
let _0x4c1884 = false;
|
||
!_0xff7089.emsgCtrl && (_0xff7089.emsgCtrl = _0x11317a.emsgCtrl, _0x4c1884 = true);
|
||
!_0xff7089.EmsgCtrl && (_0xff7089.EmsgCtrl = _0x11317a.emsgCtrl, _0x4c1884 = true);
|
||
_0x4c1884 && (_0x151ed6 = JSON.stringify(_0xff7089), _0xdfd887 = _0x151ed6);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
} catch (_0x5dfdc0) {}
|
||
try {
|
||
_0x2bc902.setRequestHeader("EmsgCtrl", _0x11317a.emsgCtrl);
|
||
_0x2bc902.setRequestHeader("emsgCtrl", _0x11317a.emsgCtrl);
|
||
} catch (_0x4d9afb) {}
|
||
}
|
||
if (_0x35cc89.bypassPopup && String(_0x2bc902.__dksqU || "").includes("checkOnCommitFpdksq")) {
|
||
{
|
||
try {
|
||
const _0x5090c7 = Object.getOwnPropertyDescriptor(XMLHttpRequest.prototype, "responseText");
|
||
const _0x21617c = Object.getOwnPropertyDescriptor(XMLHttpRequest.prototype, "response");
|
||
Object.defineProperty(_0x2bc902, "responseText", {
|
||
configurable: true,
|
||
get() {
|
||
let _0x2767c8 = "";
|
||
try {
|
||
_0x2767c8 = _0x5090c7.get.call(_0x2bc902);
|
||
} catch (_0x237df3) {}
|
||
return _0x51a0ef(_0x2767c8, _0x2bc902.__dksqU || "");
|
||
}
|
||
});
|
||
Object.defineProperty(_0x2bc902, "response", {
|
||
configurable: true,
|
||
get() {
|
||
try {
|
||
let _0xee3b1 = "";
|
||
try {
|
||
_0xee3b1 = _0x5090c7.get.call(_0x2bc902);
|
||
} catch (_0x219565) {}
|
||
const _0x277bcf = _0x51a0ef(_0xee3b1, _0x2bc902.__dksqU || "");
|
||
try {
|
||
return JSON.parse(_0x277bcf);
|
||
} catch (_0x3e1b1e) {
|
||
return _0x277bcf;
|
||
}
|
||
} catch (_0x514381) {
|
||
return _0x21617c.get.call(_0x2bc902);
|
||
}
|
||
}
|
||
});
|
||
} catch (_0x342187) {}
|
||
}
|
||
}
|
||
_0x2bc902.addEventListener("loadend", () => {
|
||
try {
|
||
const _0x2b1e45 = _0x2bc902.__dksqU || "";
|
||
const _0x1b5cd9 = _0x2bc902.getResponseHeader("content-type") || "";
|
||
const _0x7d95f = /json/i.test(_0x1b5cd9);
|
||
const _0x299cf3 = _0x35cc89.verbose || _0x1b0f08(_0x2b1e45);
|
||
let _0x1a25a8 = {};
|
||
try {
|
||
_0x1a25a8 = Object.assign({}, _0x2bc902.__dksqH || {});
|
||
} catch (_0x1c5fc1) {}
|
||
const _0x4a758c = {
|
||
method: _0x2bc902.__dksqM || "GET",
|
||
statusCode: _0x2bc902.status,
|
||
resourceType: "xmlhttprequest",
|
||
duration: Date.now() - _0x2db71e,
|
||
fromCache: false,
|
||
error: "",
|
||
initiator: location.href,
|
||
ip: "",
|
||
documentUrl: location.href,
|
||
requestBody: _0xdfd887 ? Object.assign({
|
||
kind: "raw"
|
||
}, _0x322e42(_0xdfd887)) : {
|
||
kind: "raw",
|
||
text: "",
|
||
truncated: false,
|
||
originalLength: 0
|
||
},
|
||
requestHeaders: _0x1a25a8,
|
||
responseHeaders: _0x19bc48(_0x2bc902.getAllResponseHeaders()),
|
||
cookieHeader: String(document.cookie || "").slice(0, 2000)
|
||
};
|
||
_0x50efc9("network", _0x2bc902.status >= 400 ? "error" : "info", _0x2b1e45, _0x4a758c.method + " " + _0x2bc902.status + " " + _0x2b1e45, _0x4a758c);
|
||
if (_0x1b0f08(_0x2b1e45)) {
|
||
_0x870daa("XHR响应后 " + _0x2b1e45, _0x2b1e45);
|
||
}
|
||
let _0xff3969 = "";
|
||
try {
|
||
_0xff3969 = Object.getOwnPropertyDescriptor(XMLHttpRequest.prototype, "responseText").get.call(_0x2bc902);
|
||
} catch (_0x2bea90) {}
|
||
if (_0x2b1e45.includes("getJldw")) {
|
||
try {
|
||
const _0xdbf5cc = JSON.parse(_0xff3969 || "{}");
|
||
const _0xe1043d = _0xdbf5cc && _0xdbf5cc.Response && _0xdbf5cc.Response.Data && _0xdbf5cc.Response.Data.list || [];
|
||
if (_0xe1043d.length) {
|
||
{
|
||
const _0x2327b3 = Object.assign({}, _0x5b8f79);
|
||
_0xe1043d.forEach(_0x36ae65 => {
|
||
if (_0x36ae65.JLDWMC && _0x36ae65.JLDW_DM) {
|
||
_0x2327b3[_0x36ae65.JLDWMC] = _0x36ae65.JLDW_DM;
|
||
}
|
||
});
|
||
_0x11317a.unitMap = _0x2327b3;
|
||
_0x5df6b9();
|
||
_0x4bb241("单位字典: getJldw 抓到 " + _0xe1043d.length + " 个编码(根治单位编码未知)", "net");
|
||
}
|
||
}
|
||
} catch (_0x296667) {}
|
||
}
|
||
if (_0x2b1e45.includes("checkOnSaveFpdksqxx")) {
|
||
try {
|
||
{
|
||
const _0x465c19 = JSON.parse(_0xff3969 || "{}");
|
||
const _0x8c4367 = _0x465c19 && _0x465c19.Response && _0x465c19.Response.Data;
|
||
_0x8c4367 && _0x8c4367.emsgCtrl && (_0x11317a.emsgCtrl = _0x8c4367.emsgCtrl, _0x4bb241("事前校验凭证 emsgCtrl 已捕获(XHR)", "net"));
|
||
}
|
||
} catch (_0x3c223b) {}
|
||
}
|
||
if (_0x299cf3 && (_0x7d95f || /text|xml/i.test(_0x1b5cd9))) {
|
||
const _0x6002d3 = _0x322e42(_0xff3969);
|
||
_0x50efc9("response", "info", _0x2b1e45, "响应体 " + _0x2bc902.status + " " + _0x2b1e45, {
|
||
method: _0x4a758c.method,
|
||
statusCode: _0x2bc902.status,
|
||
contentType: _0x1b5cd9,
|
||
responseBody: _0x6002d3.text,
|
||
truncated: _0x6002d3.truncated,
|
||
skipped: false,
|
||
reason: "",
|
||
originalLength: _0x6002d3.originalLength,
|
||
isIframe: false,
|
||
source: "xhr"
|
||
});
|
||
}
|
||
if (_0x7d95f && _0x2b1e45.includes("saveFpdksqxx")) {
|
||
{
|
||
try {
|
||
const _0x265334 = JSON.parse(_0xdfd887 || "{}");
|
||
_0x11317a.lastSavePayload = _0x265334;
|
||
_0x16ca5e();
|
||
const _0x3bbddf = _0x31985a(_0x265334);
|
||
const _0x390f5c = _0x4d2c42(_0x265334).reduce((_0x5ee63e, _0x1090ed) => _0x5ee63e + (Number(_0x1090ed.Je) || 0), 0);
|
||
_0x4bb241("捕获保存载荷 合计=" + _0x390f5c + " (" + _0x4d2c42(_0x265334).length + "行, 首行=" + (_0x3bbddf ? _0x3bbddf.Je : "?") + ")", "net");
|
||
_0x1769bf();
|
||
_0x373c7f(Number(_0x35cc89.ticketCount) || 1, true);
|
||
} catch (_0x4384c8) {}
|
||
try {
|
||
const _0x340259 = JSON.parse(_0xff3969 || "{}");
|
||
const _0x40705c = _0x340259 && _0x340259.Response && _0x340259.Response.Data && _0x340259.Response.Data.sqduuid;
|
||
_0x40705c && (_0x11317a.lastSqduuid = _0x40705c, _0x4bb241("sqduuid -> " + _0x40705c, "net"), _0x1769bf());
|
||
} catch (_0x2268d1) {}
|
||
}
|
||
}
|
||
} catch (_0x249924) {}
|
||
});
|
||
arguments[0] = _0x151ed6;
|
||
return _0x34f81e.apply(this, arguments);
|
||
};
|
||
const _0x3b4d34 = _0xe81192 => {
|
||
const _0x28dad6 = _0xe81192 && _0xe81192.Response && _0xe81192.Response.Data && _0xe81192.Response.Data.returnCode;
|
||
return _0x28dad6 === undefined || _0x28dad6 === null ? "NO_RC" : String(_0x28dad6);
|
||
};
|
||
const _0x34af71 = _0x435066 => _0x435066 && _0x435066.Response && _0x435066.Response.Data || {};
|
||
async function _0xca6717(_0x105b9c, _0x4a48b7, _0x19fde0) {
|
||
const _0x248e57 = _0x105b9c.includes("?") ? "&" : "?";
|
||
const _0x267b5d = Object.assign({
|
||
"Content-Type": "application/json;charset=UTF-8"
|
||
}, _0x19fde0 || {});
|
||
const _0x367729 = await fetch(_0x105b9c + _0x248e57 + "t=" + Date.now(), {
|
||
method: "POST",
|
||
credentials: "include",
|
||
headers: _0x267b5d,
|
||
body: JSON.stringify(_0x4a48b7),
|
||
__dksqInternal: true
|
||
});
|
||
const _0x37c13f = await _0x367729.text();
|
||
try {
|
||
{
|
||
return JSON.parse(_0x37c13f);
|
||
}
|
||
} catch (_0x408e93) {
|
||
return {
|
||
raw: _0x37c13f,
|
||
status: _0x367729.status
|
||
};
|
||
}
|
||
}
|
||
function _0x31985a(_0x5c130a) {
|
||
return _0x5c130a && _0x5c130a.FpdkHwlwmxGrid && _0x5c130a.FpdkHwlwmxGrid.FpdkHwlwmxGridlb && _0x5c130a.FpdkHwlwmxGrid.FpdkHwlwmxGridlb[0];
|
||
}
|
||
function _0x4d2c42(_0x126d1f) {
|
||
return _0x126d1f && _0x126d1f.FpdkHwlwmxGrid && _0x126d1f.FpdkHwlwmxGrid.FpdkHwlwmxGridlb || [];
|
||
}
|
||
function _0x589af9(_0xecd28c) {
|
||
{
|
||
const _0x4b4f5f = String(_0xecd28c == null ? "" : _0xecd28c).trim();
|
||
if (!_0x4b4f5f) {
|
||
return {
|
||
name: "",
|
||
tax: ""
|
||
};
|
||
}
|
||
let _0x29eb33 = /^(.*?)[\/()()]\s*([0-9A-Za-z]{15,20})\s*[)()]?\s*$/.exec(_0x4b4f5f);
|
||
if (_0x29eb33) {
|
||
return {
|
||
name: _0x29eb33[1].trim(),
|
||
tax: _0x29eb33[2]
|
||
};
|
||
}
|
||
_0x29eb33 = /^(.*?)[\s\-_]+([0-9A-Za-z]{15,20})$/.exec(_0x4b4f5f);
|
||
if (_0x29eb33) {
|
||
return {
|
||
name: _0x29eb33[1].trim(),
|
||
tax: _0x29eb33[2]
|
||
};
|
||
}
|
||
return {
|
||
name: _0x4b4f5f,
|
||
tax: ""
|
||
};
|
||
}
|
||
}
|
||
function _0x3d449a(_0x2a57da, _0x21e52a) {
|
||
const _0x492433 = Number(_0x21e52a) || 0;
|
||
const _0x778593 = _0x327141 ? Array.from(_0x327141.querySelectorAll(".dk-ticket"))[_0x492433] : null;
|
||
if (_0x778593) {
|
||
const _0x4b11d0 = Array.from(_0x778593.querySelectorAll(".dk-item")).map(_0x352479 => ({
|
||
qty: Number(_0x352479.querySelector("input.dk-qty").value) || 0,
|
||
dj: Number(_0x352479.querySelector("input.dk-dj").value) || 0,
|
||
je: Number(_0x352479.querySelector("input.dk-je").value) || 0,
|
||
dw: String(_0x352479.querySelector("input.dk-dw").value || "").trim(),
|
||
dl: String(_0x352479.querySelector("input.dk-dl").value || "").trim(),
|
||
cl: String(_0x352479.querySelector("input.dk-cl").value || "").trim(),
|
||
pm: String(_0x352479.querySelector("input.dk-pm").value || "").trim(),
|
||
gg: String(_0x352479.querySelector("input.dk-gg").value || "").trim(),
|
||
dm: String((_0x352479.querySelector("input.dk-hwdm") || {}).value || "")
|
||
}));
|
||
const _0x327f09 = String(_0x778593.querySelector("input.dk-gfmc").value || "").trim();
|
||
const _0x7153d5 = String(_0x778593.querySelector("input.dk-gfnsrsbh").value || "").trim();
|
||
const _0x2fe17f = _0x589af9(_0x327f09);
|
||
return {
|
||
gfmc: _0x2fe17f.name,
|
||
nsrsbh: _0x2fe17f.tax || _0x7153d5,
|
||
bz: String(_0x778593.querySelector("input.dk-bz").value || "").trim(),
|
||
items: _0x4b11d0
|
||
};
|
||
}
|
||
const _0x2f08dc = _0x2a57da.FpdkGmfxxVO || {};
|
||
return {
|
||
gfmc: String(_0x2f08dc.Ghfnsrmc || ""),
|
||
nsrsbh: String(_0x2f08dc.Ghfnsrsbh || ""),
|
||
bz: String(_0x2a57da.Bz || ""),
|
||
items: _0x4d2c42(_0x2a57da).map(_0x567630 => {
|
||
const _0x589738 = String(_0x567630.Hwlwlxmc || "").split("*").filter(Boolean);
|
||
return {
|
||
qty: Number(_0x567630.Shuliang) || 0,
|
||
dj: Number(_0x567630.Dj) || 0,
|
||
je: Number(_0x567630.Je) || 0,
|
||
dw: String(_0x567630.Dwslmc || ""),
|
||
dl: String(_0x567630.HwlwJc || ""),
|
||
cl: _0x589738.length >= 2 ? _0x589738[1] : _0x589738[0] || "",
|
||
pm: String(_0x567630.Hwlwlxmcss || ""),
|
||
gg: String(_0x567630.Ggxh || ""),
|
||
dm: String(_0x567630.HwlwlxDm || "")
|
||
};
|
||
})
|
||
};
|
||
}
|
||
function _0x16ca5e() {
|
||
{
|
||
try {
|
||
const _0x15d99 = Object.assign({}, _0x5b8f79);
|
||
const _0xd11968 = document.querySelectorAll("select option, [role=\"option\"], .t-select-option, .t-option, li[data-value], [class*=\"option\"]");
|
||
_0xd11968.forEach(_0x56493c => {
|
||
const _0x480321 = String((_0x56493c.textContent || _0x56493c.innerText || "") + "").trim();
|
||
const _0x56f193 = String(_0x56493c.getAttribute && (_0x56493c.getAttribute("value") || _0x56493c.getAttribute("data-code") || _0x56493c.getAttribute("data-value")) || "").trim();
|
||
if (_0x480321 && _0x56f193 && /^[0-9]+$/.test(_0x56f193)) {
|
||
_0x15d99[_0x480321] = _0x56f193;
|
||
}
|
||
});
|
||
const _0x3f730a = Object.keys(_0x15d99);
|
||
_0x3f730a.length > Object.keys(_0x5b8f79).length && (_0x11317a.unitMap = _0x15d99, _0x4bb241("单位字典: 从页面抓到 " + _0x3f730a.length + " 个单位编码", "net"), _0x5df6b9());
|
||
} catch (_0x478d21) {}
|
||
}
|
||
}
|
||
function _0x5094aa(_0x3fac5b, _0x3bce6e) {
|
||
const _0x510df2 = _0x31985a(_0x3fac5b);
|
||
if (!_0x510df2) {
|
||
return false;
|
||
}
|
||
const _0x87ec5e = Number(_0x510df2.Shuliang) || 0;
|
||
const _0x57ffdb = Number(_0x510df2.Dj) || 0;
|
||
const _0x37f580 = _0x5d9d71 => String(Math.round(_0x5d9d71 * 100) / 100);
|
||
const _0x23fada = _0x57ffdb > 0 ? _0x3bce6e / _0x57ffdb : 0;
|
||
_0x23fada >= 0.01 ? (_0x510df2.Shuliang = _0x37f580(_0x23fada), _0x510df2.Je = _0x3bce6e) : (_0x510df2.Shuliang = "1", _0x510df2.Dj = _0x37f580(_0x3bce6e), _0x510df2.Je = Number(_0x37f580(_0x3bce6e)));
|
||
const _0x20d746 = Number(_0x510df2.Slzsl) || 0;
|
||
_0x510df2.Se = _0x20d746 > 0 ? Number(_0x37f580(Number(_0x510df2.Je) - Number(_0x510df2.Je) / (1 + _0x20d746))) : 0;
|
||
return true;
|
||
}
|
||
function _0x401d58(_0x252a2a) {
|
||
const _0x419560 = /^(\d{4})-(\d{2})/.exec(String(_0x252a2a || ""));
|
||
if (!_0x419560) {
|
||
return String(_0x252a2a).slice(0, 8) + "31";
|
||
}
|
||
const _0x2ba995 = new Date(Number(_0x419560[1]), Number(_0x419560[2]), 0).getDate();
|
||
return _0x419560[1] + "-" + _0x419560[2] + "-" + (_0x2ba995 < 10 ? "0" + _0x2ba995 : String(_0x2ba995));
|
||
}
|
||
const _0x4bcebd = {
|
||
"1": "大厅",
|
||
"2": "自取柜",
|
||
"3": "邮寄"
|
||
};
|
||
function _0x4a6660(_0x482a9a, _0x2a9b10) {
|
||
{
|
||
const _0x2e7d8e = _0x2a9b10 || {};
|
||
return {
|
||
sqduuid: _0x482a9a,
|
||
qpfsDm: _0x2e7d8e.qpfsDm || "",
|
||
qpfsMc: _0x2e7d8e.qpfsMc || "",
|
||
sjrdh: "",
|
||
sjrdz: "",
|
||
sjrxm: "",
|
||
swdtDm: _0x2e7d8e.swdtDm || "",
|
||
swdtDz: _0x2e7d8e.swdtDz || "",
|
||
swdtmc: _0x2e7d8e.swdtmc || "",
|
||
sfmxList: [],
|
||
ksyskList: [],
|
||
dksqrlxDm: _0x11317a.lastSavePayload && (_0x11317a.lastSavePayload.dksqrlxDm || _0x11317a.lastSavePayload.DkrlxDm) || "",
|
||
testDate: _0x35cc89.testDate || "2023-01-01"
|
||
};
|
||
}
|
||
}
|
||
async function _0x4371a1(_0x475fee) {
|
||
try {
|
||
const _0x2c8ac2 = await _0xca6717("/sqsp/api/dksq/zzsfpdksq/v1/listQpfs", {
|
||
sqduuid: _0x475fee,
|
||
dksqrlxDm: _0x11317a.lastSavePayload && (_0x11317a.lastSavePayload.dksqrlxDm || _0x11317a.lastSavePayload.DkrlxDm) || ""
|
||
});
|
||
const _0x468504 = _0x34af71(_0x2c8ac2);
|
||
const _0x50dd4c = _0x468504 && _0x468504.data || _0x468504 || {};
|
||
const _0x2202ac = Array.isArray(_0x50dd4c.qpfsList) ? _0x50dd4c.qpfsList : [];
|
||
const _0x38070b = Array.isArray(_0x50dd4c.qpswdtList) ? _0x50dd4c.qpswdtList : [];
|
||
const _0x321dcc = _0x50dd4c.qpswdtdzMap || {};
|
||
const _0x234f98 = _0x2202ac[0] || {};
|
||
const _0x241530 = _0x38070b[0] || {};
|
||
_0x11317a.qpfsCtx = {
|
||
qpfsDm: String(_0x234f98.code || _0x234f98.qpfsDm || ""),
|
||
qpfsMc: String(_0x234f98.caption || _0x234f98.qpfsMc || _0x4bcebd[_0x234f98.code] || ""),
|
||
swdtDm: String(_0x241530.code || _0x241530.swdtDm || ""),
|
||
swdtDz: String(_0x321dcc[_0x241530.code] || _0x241530.address || ""),
|
||
swdtmc: String(_0x241530.caption || _0x241530.swdtmc || "")
|
||
};
|
||
const _0x48edd4 = _0x2202ac.length ? "qpfs=[" + _0x11317a.qpfsCtx.qpfsDm + " " + _0x11317a.qpfsCtx.qpfsMc + "] swdt=[" + _0x11317a.qpfsCtx.swdtDm + " " + _0x11317a.qpfsCtx.swdtmc + "]" : "电子票模式(服务端: " + (_0x50dd4c.returnMsg || "无需设置取票方式") + ")";
|
||
_0x4bb241("取票方式: " + _0x48edd4, _0x2202ac.length ? "ok" : "net");
|
||
return _0x11317a.qpfsCtx;
|
||
} catch (_0x33bf95) {
|
||
_0x4bb241("取票方式查询异常: " + (_0x33bf95 && _0x33bf95.message || _0x33bf95), "warn");
|
||
_0x11317a.qpfsCtx = null;
|
||
return null;
|
||
}
|
||
}
|
||
async function _0xa34def(_0xf758d3, _0x14f4de) {
|
||
{
|
||
try {
|
||
const _0x1408f4 = _0x14f4de && _0x14f4de.Ywfssj ? String(_0x14f4de.Ywfssj) : new Date().toISOString().slice(0, 10);
|
||
const _0x49f4d3 = _0x401d58(_0x1408f4);
|
||
const _0x1c06ca = _0x14f4de && _0x14f4de.FpdklxDm || "D9";
|
||
const _0x234ed4 = await _0xca6717("/sqsp/api/dksq/zzsfpdksq/v1/getKsyskxx", {
|
||
Sqduuid: _0xf758d3,
|
||
DkfplbDm: _0x1c06ca,
|
||
Skssqq: _0x1408f4,
|
||
Skssqz: _0x49f4d3
|
||
});
|
||
const _0x90fb83 = _0x34af71(_0x234ed4);
|
||
if (_0x90fb83.returnMsg) {
|
||
_0x4bb241("税款查询: " + _0x90fb83.returnMsg, "net");
|
||
}
|
||
const _0x569265 = await _0xca6717("/sqsp/api/dksq/zzsfpdksq/v1/loadYnskxx", {
|
||
Sqduuid: _0xf758d3,
|
||
dksqrlxDm: _0x14f4de && (_0x14f4de.dksqrlxDm || _0x14f4de.DkrlxDm) || ""
|
||
});
|
||
const _0x295dca = _0x34af71(_0x569265);
|
||
if (_0x295dca.returnMsg) {
|
||
_0x4bb241("税款加载: " + _0x295dca.returnMsg + (_0x295dca.isBuJiao ? " isBuJiao=" + _0x295dca.isBuJiao : ""), "net");
|
||
}
|
||
if (_0x295dca.returnMsg && String(_0x295dca.returnMsg).indexOf("缺少必要配置") !== -1) {
|
||
{
|
||
_0x4bb241("地区与账号档案不符!取消勾选「经营地手术」再跑", "block");
|
||
}
|
||
}
|
||
} catch (_0x447ee5) {
|
||
_0x4bb241("税款准备异常: " + (_0x447ee5 && _0x447ee5.message ? _0x447ee5.message : _0x447ee5), "warn");
|
||
}
|
||
}
|
||
}
|
||
async function _0x5a9668(_0x18a741) {
|
||
{
|
||
let _0x15e320 = "";
|
||
try {
|
||
{
|
||
const _0x493891 = JSON.parse(JSON.stringify(_0x18a741));
|
||
delete _0x493891.emsgCtrl;
|
||
delete _0x493891.EmsgCtrl;
|
||
const _0x1b4dc5 = await _0xca6717("/sqsp/api/dksq/zzsfpdksqtjjk/v1/checkOnSaveFpdksqxx", _0x493891);
|
||
const _0x2de281 = _0x34af71(_0x1b4dc5);
|
||
if (_0x2de281.emsgCtrl) {
|
||
{
|
||
_0x11317a.emsgCtrl = _0x2de281.emsgCtrl;
|
||
_0x15e320 = _0x2de281.emsgCtrl;
|
||
}
|
||
}
|
||
_0x4bb241("事前校验 checkOnSave rc=" + _0x3b4d34(_0x1b4dc5) + (_0x15e320 ? " emsgCtrl=已捕获" : " emsgCtrl=无"), "net");
|
||
}
|
||
} catch (_0x10f237) {
|
||
_0x4bb241("事前校验异常: " + (_0x10f237 && _0x10f237.message || _0x10f237), "warn");
|
||
}
|
||
return _0x15e320;
|
||
}
|
||
}
|
||
async function _0x579ebc(_0xbbaf7b, _0x4b02f7) {
|
||
const _0x1a3c43 = JSON.parse(JSON.stringify(_0xbbaf7b));
|
||
const _0x53e229 = {};
|
||
_0x4b02f7 && (_0x1a3c43.emsgCtrl = _0x4b02f7, _0x1a3c43.EmsgCtrl = _0x4b02f7, _0x53e229.emsgCtrl = _0x4b02f7, _0x53e229.EmsgCtrl = _0x4b02f7);
|
||
return await _0xca6717("/sqsp/api/dksq/zzsfpdksq/v1/saveFpdksqxx", _0x1a3c43, _0x53e229);
|
||
}
|
||
async function _0x19fec8(_0x56808a) {
|
||
if (!_0x11317a.running) {
|
||
return {
|
||
rc: "STOPPED"
|
||
};
|
||
}
|
||
const _0x3c5e8f = await _0x5a9668(_0x56808a);
|
||
const _0x320b6d = await _0x579ebc(_0x56808a, _0x3c5e8f);
|
||
const _0x16ba0f = _0x34af71(_0x320b6d);
|
||
const _0x33a187 = _0x3b4d34(_0x320b6d);
|
||
const _0x3d8f1d = _0x16ba0f.sqduuid;
|
||
if (!_0x3d8f1d) {
|
||
_0x4bb241("保存被拦 rc=" + _0x33a187 + ": " + (_0x16ba0f.returnMsg || JSON.stringify(_0x320b6d).slice(0, 200)), "block");
|
||
return {
|
||
rc: _0x33a187,
|
||
sq: "",
|
||
d: _0x16ba0f
|
||
};
|
||
}
|
||
_0x11317a.lastSqduuid = _0x3d8f1d;
|
||
await _0x54488c(_0x35cc89.pause);
|
||
await _0xa34def(_0x3d8f1d, _0x56808a);
|
||
await _0x4371a1(_0x3d8f1d);
|
||
const _0x566d8b = await _0xca6717("/sqsp/api/dksq/zzsfpdksqtjjk/v1/checkOnCommitFpdksq", _0x4a6660(_0x3d8f1d, _0x11317a.qpfsCtx));
|
||
const _0x3d0ab1 = _0x3b4d34(_0x566d8b);
|
||
const _0x524a73 = _0x34af71(_0x566d8b);
|
||
const _0x49b52e = (_0x524a73.checkResult || []).map(_0x216a91 => _0x216a91.zbbm + " " + (_0x216a91.title || "")).join(" | ");
|
||
_0x4bb241(" je=" + _0x31985a(_0x56808a).Je + " rc=" + _0x3d0ab1 + " " + (_0x524a73.returnMsg || "") + " " + _0x49b52e, _0x3d0ab1 === "-2" ? "block" : "ok");
|
||
return {
|
||
rc: _0x3d0ab1,
|
||
sq: _0x3d8f1d,
|
||
d: _0x524a73
|
||
};
|
||
}
|
||
async function _0x491463(_0x4dde4c, _0x5503dc) {
|
||
if (!_0x11317a.qpfsCtx) {
|
||
await _0x4371a1(_0x4dde4c);
|
||
}
|
||
const _0x356dbb = _0x4a6660(_0x4dde4c, _0x11317a.qpfsCtx);
|
||
if (_0x5503dc && _0x5503dc.fxjkFlzluuid) {
|
||
{
|
||
_0x356dbb.fxjkFlzluuid = _0x5503dc.fxjkFlzluuid;
|
||
_0x356dbb.businessFlzlList = _0x5503dc.businessFlzlList || [];
|
||
}
|
||
}
|
||
const _0x43d453 = await _0xca6717("/sqsp/api/dksq/zzsfpdksq/v1/commitFpdksq", _0x356dbb);
|
||
const _0x56aa3a = _0x34af71(_0x43d453);
|
||
const _0x39f193 = _0x56aa3a.fphm || _0x56aa3a.data && _0x56aa3a.data.fphm || "";
|
||
const _0x4abfbd = String(_0x56aa3a.tjjgDm || "");
|
||
const _0x20c753 = {
|
||
"01": "需缴税",
|
||
"02": "电子票直开",
|
||
"03": "纸质邮寄",
|
||
"04": "大厅领取",
|
||
"05": "材料审核",
|
||
"06": "出租方授权"
|
||
};
|
||
const _0x2e13f8 = _0x20c753[_0x4abfbd] || _0x4abfbd;
|
||
const _0x44070a = (_0x56aa3a.checkResult || []).map(_0x17a1c9 => _0x17a1c9.zbbm + " " + (_0x17a1c9.title || "")).join(" | ");
|
||
if (_0x3b4d34(_0x43d453) === "-93") {
|
||
_0x4bb241("提交被拒 -93: 已有“审核中/拟稿中”记录挡着, 去【代开发票查询】处理掉再开新单", "block");
|
||
}
|
||
if (_0x3b4d34(_0x43d453) === "-90") {
|
||
_0x4bb241("提交 -90: V2 风控 commitFpdksqCheck 复检不通过(check=" + _0x56aa3a.commitFpdksqCheck + ")", "block");
|
||
}
|
||
_0x4bb241("提交 sq=" + _0x4dde4c + " rc=" + _0x3b4d34(_0x43d453) + " tjjg=" + (_0x2e13f8 || "-") + " fphm=" + _0x39f193 + " msg=" + (_0x56aa3a.returnMsg || "") + " " + _0x44070a, _0x39f193 || _0x3b4d34(_0x43d453) === "0" ? "ok" : "block");
|
||
return _0x43d453;
|
||
}
|
||
async function _0x539c6a(_0x36ad7b, _0x4751ba) {
|
||
const _0x30358c = await _0x491463(_0x36ad7b.sq, _0x4751ba);
|
||
const _0xaea779 = _0x34af71(_0x30358c);
|
||
const _0x35aa6c = _0xaea779.fphm || _0xaea779.data && _0xaea779.data.fphm || "";
|
||
if (_0x35aa6c) {
|
||
return {
|
||
ok: true,
|
||
fp: _0x35aa6c,
|
||
cj: _0x30358c
|
||
};
|
||
}
|
||
const _0x526fe4 = String(_0xaea779.tjjgDm || "");
|
||
return {
|
||
ok: false,
|
||
rc: _0x3b4d34(_0x30358c),
|
||
msg: _0xaea779.returnMsg || "",
|
||
tjjg: _0x526fe4,
|
||
cj: _0x30358c
|
||
};
|
||
}
|
||
const _0x1e125d = ["-90", "-100", "-101"];
|
||
function _0x16adff(_0x2055a5) {
|
||
if (_0x2055a5 && _0x2055a5.rc === "-93") {
|
||
_0x4bb241("卡单 -93: 门户【代开发票查询】里有“审核中/拟稿中”的旧记录挡着, 先去处理掉, 再点【新开一单】重跑", "block");
|
||
return true;
|
||
}
|
||
return false;
|
||
}
|
||
let _0x1bc6ad = [{
|
||
tag: "m9购方机关切本省(实测码)",
|
||
gmfSwjg: true
|
||
}, {
|
||
tag: "m15机关切省+签合同(m9+m11, 试绕A20023/A20040)",
|
||
gmfSwjg: true,
|
||
Sfqdht: "Y"
|
||
}, {
|
||
tag: "m11只签合同(自产免税)",
|
||
Sfqdht: "Y"
|
||
}];
|
||
if (_0x51ddf6 === "xinjiang") {
|
||
_0x1bc6ad = _0x1bc6ad.filter(_0x24b659 => _0x24b659.tag.startsWith("m9"));
|
||
}
|
||
function _0xb45e9(_0x14a438) {
|
||
const _0x22fb88 = String(_0x14a438.YsfwfsdSfdm || "").slice(0, 2) || "36";
|
||
const _0x58a1b6 = String(_0x14a438.YsfwfsdQjdm || "").slice(2, 6) || "0681";
|
||
if (_0x22fb88 === "36" && _0x58a1b6 === "0681") {
|
||
return {
|
||
jg: "13600000000",
|
||
fj: "13606813400"
|
||
};
|
||
}
|
||
return {
|
||
jg: "1" + _0x22fb88 + "00000000",
|
||
fj: "1" + _0x22fb88 + _0x58a1b6 + "0000"
|
||
};
|
||
}
|
||
function _0x491971(_0x564718, _0x2439d7, _0x2d1c16) {
|
||
const _0x2864ec = JSON.parse(JSON.stringify(_0x564718));
|
||
delete _0x2864ec.Sqduuid;
|
||
delete _0x2864ec.emsgCtrl;
|
||
delete _0x2864ec.EmsgCtrl;
|
||
_0x5094aa(_0x2864ec, _0x2d1c16);
|
||
if (_0x2439d7.dksqrlxDm !== undefined) {
|
||
_0x2864ec.dksqrlxDm = _0x2439d7.dksqrlxDm;
|
||
}
|
||
if (_0x2439d7.bqlxDm !== undefined) {
|
||
_0x2864ec.bqlxDm = _0x2439d7.bqlxDm;
|
||
}
|
||
if (_0x2439d7.FpdklxDm !== undefined) {
|
||
_0x2864ec.FpdklxDm = _0x2439d7.FpdklxDm;
|
||
}
|
||
if (_0x2439d7.Sfqdht) {
|
||
_0x2864ec.Sfqdht = _0x2439d7.Sfqdht;
|
||
}
|
||
if (_0x2439d7.Sfzcncp) {
|
||
_0x2864ec.Sfzcncp = _0x2439d7.Sfzcncp;
|
||
}
|
||
if (_0x2439d7.Sfzcncp === "N") {
|
||
const _0x1ce207 = _0x31985a(_0x2864ec);
|
||
_0x1ce207 && !(Number(_0x1ce207.Slzsl) > 0) && (_0x1ce207.Slzsl = "0.01", _0x1ce207.Se = Math.round((Number(_0x1ce207.Je) - Number(_0x1ce207.Je) / 1.01) * 100) / 100);
|
||
}
|
||
const _0x548eb2 = _0x2864ec.FpdkHwlwmxGrid && _0x2864ec.FpdkHwlwmxGrid.FpdkHwlwmxGridlb;
|
||
if (_0x548eb2 && _0x548eb2.length > 1) {
|
||
_0x548eb2.length = 1;
|
||
}
|
||
const _0x30d2b4 = _0x31985a(_0x2864ec);
|
||
if (_0x30d2b4 && _0x2439d7.Slzsl) {
|
||
{
|
||
const _0x1d492c = Number(_0x30d2b4.Je) || 0;
|
||
const _0x490fe8 = _0x3126e6 => String(Math.round(_0x3126e6 * 100) / 100);
|
||
_0x30d2b4.Slzsl = _0x2439d7.Slzsl;
|
||
_0x30d2b4.Se = _0x490fe8(_0x1d492c - _0x1d492c / (1 + Number(_0x2439d7.Slzsl)));
|
||
}
|
||
}
|
||
return _0x2864ec;
|
||
}
|
||
function _0x4a0bdc() {
|
||
{
|
||
const _0x11edf3 = {};
|
||
try {
|
||
{
|
||
const _0x184d82 = sessionStorage.getItem("token");
|
||
if (_0x184d82) {
|
||
_0x11edf3.AuthorizationMock = _0x184d82;
|
||
}
|
||
}
|
||
} catch (_0x241b76) {}
|
||
try {
|
||
const _0x4705ce = _0x34491f => {
|
||
let _0x50aa6b = "";
|
||
try {
|
||
document.cookie.split(";").forEach(_0x229d9a => {
|
||
const _0x3bf297 = _0x229d9a.split("=");
|
||
if (_0x3bf297[0].trim() === _0x34491f) {
|
||
_0x50aa6b = decodeURIComponent(_0x3bf297.slice(1).join("="));
|
||
}
|
||
});
|
||
} catch (_0x155094) {}
|
||
return _0x50aa6b;
|
||
};
|
||
let _0x91486f = "";
|
||
const _0x2203f8 = localStorage.getItem("xwcj_tpass_token");
|
||
if (_0x2203f8) {
|
||
_0x91486f = _0x4705ce(_0x2203f8);
|
||
}
|
||
if (!_0x91486f) {
|
||
_0x91486f = _0x4705ce("tpass_app_token") || _0x4705ce("tpass_gov_token");
|
||
}
|
||
_0x91486f && (_0x11edf3.AuthorizationMock = _0x11edf3.AuthorizationMock || _0x91486f, _0x11edf3.Authorization = _0x91486f);
|
||
} catch (_0x10ed7a) {}
|
||
return _0x11edf3;
|
||
}
|
||
}
|
||
function _0x369f1f(_0x4096bf, _0x3052a3, _0x5867f7, _0x356513, _0x1f3417) {
|
||
return new Promise(_0x4412d2 => {
|
||
let _0x534abd = null;
|
||
try {
|
||
_0x534abd = new XMLHttpRequest();
|
||
_0x534abd.open(_0x4096bf, _0x3052a3 + (_0x3052a3.indexOf("?") === -1 ? "?" : "&") + "t=" + Date.now(), true);
|
||
_0x534abd.withCredentials = true;
|
||
_0x534abd.timeout = _0x1f3417 || 8000;
|
||
_0x534abd.setRequestHeader("Accept", "application/json, text/plain, */*");
|
||
_0x534abd.setRequestHeader("X-Requested-With", "XMLHttpRequest");
|
||
if (_0x4096bf === "POST") {
|
||
_0x534abd.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
|
||
}
|
||
const _0x3162d5 = _0x356513 || {};
|
||
for (const _0x359b85 in _0x3162d5) {
|
||
try {
|
||
{
|
||
_0x534abd.setRequestHeader(_0x359b85, _0x3162d5[_0x359b85]);
|
||
}
|
||
} catch (_0x3d0a24) {}
|
||
}
|
||
let _0x347d8b = false;
|
||
const _0x359cd1 = _0xed60f => {
|
||
!_0x347d8b && (_0x347d8b = true, _0x4412d2(_0xed60f));
|
||
};
|
||
_0x534abd.onreadystatechange = () => {
|
||
if (_0x534abd.readyState !== 4) {
|
||
return;
|
||
}
|
||
let _0x24f0c6 = "";
|
||
try {
|
||
{
|
||
_0x24f0c6 = _0x534abd.responseText || "";
|
||
}
|
||
} catch (_0x104a41) {}
|
||
if (!_0x24f0c6) {
|
||
_0x359cd1(null);
|
||
return;
|
||
}
|
||
try {
|
||
_0x359cd1(JSON.parse(_0x24f0c6));
|
||
} catch (_0x1528db) {
|
||
_0x359cd1({
|
||
raw: _0x24f0c6,
|
||
status: _0x534abd.status
|
||
});
|
||
}
|
||
};
|
||
_0x534abd.onerror = () => _0x359cd1(null);
|
||
_0x534abd.ontimeout = () => _0x359cd1(null);
|
||
_0x534abd.onabort = () => _0x359cd1(null);
|
||
_0x534abd.send(_0x4096bf === "POST" ? JSON.stringify(_0x5867f7 || {}) : null);
|
||
} catch (_0x131a3b) {
|
||
_0x4412d2(null);
|
||
}
|
||
});
|
||
}
|
||
function _0x1d7303(_0x7b7540) {
|
||
if (!_0x7b7540) {
|
||
return {};
|
||
}
|
||
if (_0x7b7540.data && typeof _0x7b7540.data === "object" && !Array.isArray(_0x7b7540.data)) {
|
||
return _0x7b7540.data;
|
||
}
|
||
if (_0x7b7540.Response && _0x7b7540.Response.Data) {
|
||
return _0x7b7540.Response.Data;
|
||
}
|
||
return _0x7b7540;
|
||
}
|
||
function _0x23c662(_0x270dca) {
|
||
if (!_0x270dca) {
|
||
return [];
|
||
}
|
||
if (Array.isArray(_0x270dca.data)) {
|
||
return _0x270dca.data;
|
||
}
|
||
const _0x18f5dc = _0x1d7303(_0x270dca);
|
||
if (Array.isArray(_0x18f5dc)) {
|
||
return _0x18f5dc;
|
||
}
|
||
return Array.isArray(_0x18f5dc.businessFlzlList) ? _0x18f5dc.businessFlzlList : [];
|
||
}
|
||
async function _0xbdb26a(_0x26a887, _0x208743, _0x168be4, _0x2e5e75, _0x4f25f8) {
|
||
const _0x57608c = await _0x369f1f("POST", "/wszlzx/api/dzzl/flzl/v1/fyFlzl", {
|
||
swsxDm: _0x208743,
|
||
sxuuid: _0x26a887,
|
||
ywbm: "default",
|
||
dtgdbz: "",
|
||
businessFlzlList: _0x4f25f8
|
||
}, _0x2e5e75, 8000);
|
||
if (_0x57608c === null) {
|
||
{
|
||
_0x4bb241("N2 fyFlzl 断连, 新通道停止", "block");
|
||
return null;
|
||
}
|
||
}
|
||
const _0x1c1c99 = _0x1d7303(_0x57608c);
|
||
if (_0x1c1c99.returnCode !== undefined && String(_0x1c1c99.returnCode).indexOf("-") === 0) {
|
||
_0x4bb241("N2 fyFlzl 拒绝 rc=" + _0x1c1c99.returnCode + " " + (_0x1c1c99.returnMsg || ""), "block");
|
||
return null;
|
||
}
|
||
const _0x54bdf8 = await _0x369f1f("POST", "/wszlzx/api/dzzl/flzl/v1/getBusinessFlzlList", {
|
||
Sxuuid: _0x26a887,
|
||
SwsxDm: _0x208743,
|
||
Ywbm: "default",
|
||
Djxh: _0x168be4
|
||
}, _0x2e5e75, 8000);
|
||
const _0x16e496 = _0x23c662(_0x54bdf8);
|
||
if (!_0x16e496.length) {
|
||
_0x4bb241("N2 回读批次无记录, 新通道失效", "block");
|
||
return null;
|
||
}
|
||
_0x4bb241("N2 生效: 批次含 " + _0x16e496.length + " 条附件记录(零上传复用历史)", "ok");
|
||
return {
|
||
fxjkFlzluuid: _0x26a887,
|
||
businessFlzlList: _0x16e496,
|
||
djxh: _0x168be4,
|
||
swsxDm: _0x208743,
|
||
flzlFxjk: {
|
||
flzluuid: _0x26a887,
|
||
flzlmxGrid: {
|
||
flzlmxGridlb: _0x16e496
|
||
}
|
||
}
|
||
};
|
||
}
|
||
async function _0x11e78f(_0x17a42b, _0x1445fc, _0x5f3a61) {
|
||
{
|
||
const _0x4bc176 = _0x17a42b && _0x17a42b.FpdkGmfxxVO && _0x17a42b.FpdkGmfxxVO.Ghfdjxh || _0x17a42b && _0x17a42b.FpdkXsfxxVO && _0x17a42b.FpdkXsfxxVO.Xhfdjxh || "";
|
||
const _0x328cda = _0x4a0bdc();
|
||
const _0x485b45 = Object.assign({
|
||
Djxh: _0x4bc176,
|
||
Lybj: "",
|
||
SecDjxh: ""
|
||
}, _0x328cda);
|
||
const _0x220937 = Array.from(new Set(Array.isArray(_0x1445fc.flzl) && _0x1445fc.flzl.length ? _0x1445fc.flzl : ["003457", "002280"]));
|
||
_0x4bb241("v1.9.30 附件新通道: 需要 [" + _0x220937.join(",") + "] sxuuid=" + _0x5f3a61 + " auth=" + (_0x328cda.AuthorizationMock ? "有JWT" : "空"), "net");
|
||
const _0x4f373d = await _0x369f1f("GET", "/wszlzx/api/dzzl/flzl/v1/getTokCheckId?sxuuid=" + encodeURIComponent(_0x5f3a61), null, _0x485b45, 8000);
|
||
if (_0x4f373d === null) {
|
||
_0x4bb241("N1 探测失败: /wszlzx 网关仍未放行, 新通道失效并停止", "block");
|
||
return null;
|
||
}
|
||
_0x4bb241("N1 探测通过: 网关放行 " + String(JSON.stringify(_0x4f373d)).slice(0, 160), "ok");
|
||
const _0x7c28f6 = await _0x369f1f("POST", "/wszlzx/api/dzzl/flzl/v1/getFlzlListBySwsxDm", {
|
||
swsxDm: "SXA021011008",
|
||
ywbm: "default",
|
||
sxuuid: _0x5f3a61
|
||
}, _0x485b45, 8000);
|
||
const _0x318aeb = _0x23c662(_0x7c28f6);
|
||
if (_0x318aeb.length) {
|
||
_0x4bb241("N2 必传清单: " + _0x318aeb.length + " 项", "net");
|
||
}
|
||
const _0x3db896 = ["SXN021006001", "SXA021011008"];
|
||
for (const _0x2393a5 of _0x3db896) {
|
||
if (!_0x11317a.running) {
|
||
return null;
|
||
}
|
||
const _0x5f00e4 = [];
|
||
for (const _0x5a8dbc of _0x220937) {
|
||
const _0x485382 = await _0x369f1f("POST", "/wszlzx/api/dzzl/flzl/v1/queryWdZlk", {
|
||
flzlDm: _0x5a8dbc,
|
||
swsxDm: _0x2393a5,
|
||
pageSize: 10,
|
||
pageNum: 1
|
||
}, _0x485b45, 8000);
|
||
if (_0x485382 === null) {
|
||
{
|
||
_0x4bb241("N2 税所 " + _0x2393a5 + " 类目 " + _0x5a8dbc + " 查询断连", "warn");
|
||
continue;
|
||
}
|
||
}
|
||
const _0x1756ea = _0x23c662(_0x485382);
|
||
if (_0x1756ea.length && _0x1756ea[0].fileKey) {
|
||
_0x5f00e4.push({
|
||
fileKey: _0x1756ea[0].fileKey,
|
||
flzlDm: _0x5a8dbc
|
||
});
|
||
}
|
||
await _0x54488c(300);
|
||
}
|
||
if (_0x5f00e4.length === _0x220937.length) {
|
||
_0x4bb241("N2 税所 " + _0x2393a5 + " 命中全部 " + _0x5f00e4.length + " 类历史附件 -> 服务端复制", "ok");
|
||
return await _0xbdb26a(_0x5f3a61, _0x2393a5, _0x4bc176, _0x485b45, _0x5f00e4);
|
||
}
|
||
if (_0x5f00e4.length) {
|
||
_0x4bb241("N2 税所 " + _0x2393a5 + " 仅 " + _0x5f00e4.length + "/" + _0x220937.length + " 类, 换下一税所", "warn");
|
||
}
|
||
}
|
||
const _0x535e27 = await _0x369f1f("POST", "/wszlzx/api/dzzl/flzl/v1/getFlzlListByFybqh", {
|
||
swsxDm: "SXA021011008",
|
||
sxuuid: _0x5f3a61,
|
||
ywbm: "default",
|
||
djxh: _0x4bc176
|
||
}, _0x485b45, 8000);
|
||
if (_0x535e27 === null) {
|
||
_0x4bb241("N2 getFlzlListByFybqh 断连, 新通道停止", "block");
|
||
return null;
|
||
}
|
||
const _0x87cd6a = _0x23c662(_0x535e27);
|
||
if (_0x87cd6a.length && _0x87cd6a[0].fileKey) {
|
||
{
|
||
_0x4bb241("N2 getFlzlListByFybqh 命中 " + _0x87cd6a.length + " 条", "ok");
|
||
const _0x6d7d89 = _0x220937.map(_0x28f31a => ({
|
||
fileKey: (_0x87cd6a.find(_0x13c6ed => _0x13c6ed.flzlDm === _0x28f31a) || _0x87cd6a[0]).fileKey,
|
||
flzlDm: _0x28f31a
|
||
}));
|
||
return await _0xbdb26a(_0x5f3a61, "SXA021011008", _0x4bc176, _0x485b45, _0x6d7d89);
|
||
}
|
||
}
|
||
_0x4bb241("N2 全部历史源为空: 无源可复用, 新通道到此为止", "block");
|
||
return null;
|
||
}
|
||
}
|
||
async function _0x2d0672(_0x916bc9, _0x50182b, _0x5c08d5, _0x26b9d3) {
|
||
const _0x1d1e68 = _0x491971(_0x916bc9, _0x50182b, _0x5c08d5);
|
||
if (_0x50182b.gmfSwjg) {
|
||
const _0x105734 = _0xb45e9(_0x1d1e68);
|
||
if (_0x1d1e68.FpdkGmfxxVO && _0x105734.fj) {
|
||
{
|
||
_0x1d1e68.FpdkGmfxxVO.ZgswjgDm = _0x105734.jg;
|
||
_0x1d1e68.FpdkGmfxxVO.ZgswskfjDm = _0x105734.fj;
|
||
_0x4bb241("[" + _0x26b9d3 + "] 候选 " + _0x50182b.tag + ": 购方机关切本省 jg=" + _0x105734.jg + " fj=" + _0x105734.fj, "net");
|
||
}
|
||
} else {
|
||
{
|
||
_0x4bb241("[" + _0x26b9d3 + "] 候选 " + _0x50182b.tag + ": 无可用机关码, 跳过", "net");
|
||
return {
|
||
sq: "",
|
||
rc: "SKIP",
|
||
d: {},
|
||
tags: "no-swjg"
|
||
};
|
||
}
|
||
}
|
||
}
|
||
const _0x5400a4 = _0x31985a(_0x1d1e68);
|
||
const _0x1abdb2 = await _0x5a9668(_0x1d1e68);
|
||
const _0x21549c = await _0x579ebc(_0x1d1e68, _0x1abdb2);
|
||
const _0x1b219b = _0x34af71(_0x21549c);
|
||
const _0xab4a3c = _0x3b4d34(_0x21549c);
|
||
const _0x28351a = _0x1b219b.sqduuid;
|
||
if (!_0x28351a) {
|
||
return {
|
||
sq: "",
|
||
rc: _0xab4a3c,
|
||
d: _0x1b219b,
|
||
tags: "save:" + (_0x1b219b.returnMsg || _0xab4a3c)
|
||
};
|
||
}
|
||
_0x11317a.lastSqduuid = _0x28351a;
|
||
await _0x54488c(_0x35cc89.pause);
|
||
await _0xa34def(_0x28351a, _0x1d1e68);
|
||
await _0x4371a1(_0x28351a);
|
||
if (!_0x11317a.running) {
|
||
return null;
|
||
}
|
||
let _0x20c86e = await _0xca6717("/sqsp/api/dksq/zzsfpdksqtjjk/v1/checkOnCommitFpdksq", _0x4a6660(_0x28351a, _0x11317a.qpfsCtx));
|
||
let _0x128842 = _0x3b4d34(_0x20c86e);
|
||
let _0x13cec2 = _0x34af71(_0x20c86e);
|
||
const _0x146e97 = _0x13cec2.flzl && _0x13cec2.flzl.length ? " flzl=" + JSON.stringify(_0x13cec2.flzl) : "";
|
||
const _0x422ce3 = (_0x13cec2.checkResult || []).map(_0x4c6d27 => _0x4c6d27.zbbm + " " + (_0x4c6d27.title || "")).join(" | ") + _0x146e97;
|
||
_0x4bb241("[" + _0x26b9d3 + "] 候选 " + _0x50182b.tag + " je=" + _0x5400a4.Je + " rc=" + _0x128842 + " " + (_0x13cec2.returnMsg || "") + " " + _0x422ce3, _0x128842 === "0" || _0x128842 === "1" ? "ok" : "block");
|
||
_0x128842 === "-3" && String(_0x13cec2.returnMsg || "").indexOf("上传附件") !== -1 && Array.isArray(_0x13cec2.flzl) && _0x13cec2.flzl.length && _0x4bb241("[" + _0x26b9d3 + "] 附件闸未突破(上传附件通道未开放): 保留原始阻断结果, 阻止提交放大单", "block");
|
||
return {
|
||
sq: _0x28351a,
|
||
rc: _0x128842,
|
||
d: _0x13cec2,
|
||
small: _0x1d1e68,
|
||
tags: _0x422ce3,
|
||
mask: _0x50182b
|
||
};
|
||
}
|
||
async function _0x222fa2(_0x53d727, _0x430d0e) {
|
||
const _0x3809d9 = Number(_0x35cc89.gateJe) || 10;
|
||
let _0x42d66b = _0x1bc6ad;
|
||
const _0x55d225 = (_0x35cc89.winMasks || {})[_0x51ddf6];
|
||
if (_0x55d225) {
|
||
{
|
||
const _0x569aa7 = _0x1bc6ad.findIndex(_0x551117 => _0x551117.tag === _0x55d225);
|
||
if (_0x569aa7 > 0) {
|
||
_0x42d66b = [_0x1bc6ad[_0x569aa7]].concat(_0x1bc6ad.filter((_0x13a5de, _0x4fb46f) => _0x4fb46f !== _0x569aa7));
|
||
}
|
||
}
|
||
}
|
||
let _0x5492d3 = null;
|
||
let _0x4ae7f9 = null;
|
||
for (const _0x4a6f4d of _0x42d66b) {
|
||
if (!_0x11317a.running) {
|
||
return null;
|
||
}
|
||
const _0x49b2dd = _0x4a6f4d.amt || _0x3809d9;
|
||
const _0x55cb3d = await _0x2d0672(_0x53d727, _0x4a6f4d, _0x49b2dd, _0x430d0e);
|
||
if (!_0x55cb3d) {
|
||
return null;
|
||
}
|
||
if (_0x55cb3d.rc === "0" || _0x55cb3d.rc === "1") {
|
||
{
|
||
_0x4bb241("[" + _0x430d0e + "] 拿章成功 " + _0x4a6f4d.tag + " sq=" + _0x55cb3d.sq + " rc=" + _0x55cb3d.rc, "ok");
|
||
_0x35cc89.winMasks = _0x35cc89.winMasks || {};
|
||
_0x35cc89.winMasks[_0x51ddf6] !== _0x4a6f4d.tag && (_0x35cc89.winMasks[_0x51ddf6] = _0x4a6f4d.tag, _0xd5c273());
|
||
return _0x55cb3d;
|
||
}
|
||
}
|
||
if (!_0x4ae7f9) {
|
||
_0x4ae7f9 = _0x55cb3d;
|
||
}
|
||
_0x5492d3 = _0x55cb3d;
|
||
}
|
||
if (_0x5492d3 && _0x4ae7f9) {
|
||
_0x5492d3.firstTags = _0x4ae7f9.tags;
|
||
}
|
||
_0x4bb241("[" + _0x430d0e + "] 全部候选被拦: 首拦=" + (_0x4ae7f9 ? _0x4ae7f9.tags : "-") + " 末拦=" + (_0x5492d3 ? _0x5492d3.tags : "-"), "block");
|
||
return _0x5492d3;
|
||
}
|
||
async function _0x3a19ec(_0x2d0c69, _0x1fcc28, _0x7be4b3, _0x366e4b, _0x3aae84) {
|
||
{
|
||
const _0x44e55d = JSON.parse(JSON.stringify(_0x1fcc28));
|
||
_0x44e55d.Sqduuid = _0x2d0c69.sq;
|
||
const _0x19c9bb = _0x4d2c42(_0x44e55d);
|
||
const _0x594160 = _0x19c9bb[0];
|
||
if (!_0x594160) {
|
||
_0x4bb241("[" + _0x7be4b3 + "] 载荷无明细行, 跳过", "block");
|
||
return {
|
||
ok: false,
|
||
rc: "NOROW",
|
||
msg: "norow"
|
||
};
|
||
}
|
||
const _0xaba20f = _0x366e4b && _0x366e4b.items && _0x366e4b.items.length ? _0x366e4b.items.filter(_0x510170 => _0x510170.dl || _0x510170.cl || _0x510170.pm || Number(_0x510170.qty) > 0 || Number(_0x510170.dj) > 0 || Number(_0x510170.je) > 0) : [];
|
||
if (!_0xaba20f.length) {
|
||
{
|
||
_0x4bb241("[" + _0x7be4b3 + "] 该张没有有效明细, 跳过提交", "block");
|
||
return {
|
||
ok: false,
|
||
rc: "NOITEM",
|
||
msg: "noitem"
|
||
};
|
||
}
|
||
}
|
||
const _0x273c80 = _0x44e55d.FpdkHwlwmxGrid.FpdkHwlwmxGridlb;
|
||
const _0x43cf60 = [];
|
||
_0xaba20f.forEach((_0x29093b, _0x1cc38e) => {
|
||
const _0x24c75d = _0x1cc38e < _0x19c9bb.length ? _0x19c9bb[_0x1cc38e] : _0x594160;
|
||
const _0x1e4ec3 = JSON.parse(JSON.stringify(_0x24c75d));
|
||
if (Number(_0x29093b.qty) > 0) {
|
||
_0x1e4ec3.Shuliang = _0x9e6d16(_0x29093b.qty);
|
||
}
|
||
if (Number(_0x29093b.dj) > 0) {
|
||
_0x1e4ec3.Dj = _0x9e6d16(_0x29093b.dj);
|
||
}
|
||
_0x1e4ec3.Je = Number(_0x9e6d16(_0x29093b.je));
|
||
const _0x183b3a = Number(_0x1e4ec3.Slzsl) || 0;
|
||
_0x1e4ec3.Se = _0x183b3a > 0 ? Number(_0x9e6d16(_0x1e4ec3.Je - _0x1e4ec3.Je / (1 + _0x183b3a))) : 0;
|
||
if (_0x29093b.dw) {
|
||
_0x1e4ec3.Dwslmc = String(_0x29093b.dw);
|
||
const _0x4e5f72 = _0x11317a.unitMap && _0x11317a.unitMap[_0x29093b.dw] || _0x5b8f79[_0x29093b.dw] || "";
|
||
if (_0x4e5f72) {
|
||
_0x1e4ec3.Dwslbm = _0x4e5f72;
|
||
} else {
|
||
_0x4bb241("[" + _0x7be4b3 + "] 行" + (_0x1cc38e + 1) + " 单位 \"" + _0x29093b.dw + "\" 编码未知: 保留原编码 " + (_0x1e4ec3.Dwslbm || ""), "warn");
|
||
}
|
||
}
|
||
if (_0x29093b.dl || _0x29093b.cl || _0x29093b.pm) {
|
||
if (_0x29093b.dl) {
|
||
_0x1e4ec3.HwlwJc = String(_0x29093b.dl);
|
||
}
|
||
if (_0x29093b.cl) {
|
||
_0x1e4ec3.Hwlwlxmc = "*" + (_0x29093b.dl || _0x1e4ec3.HwlwJc || "") + "*" + String(_0x29093b.cl);
|
||
}
|
||
if (_0x29093b.pm) {
|
||
_0x1e4ec3.Hwlwlxmcss = String(_0x29093b.pm);
|
||
}
|
||
}
|
||
if (_0x29093b.dm) {
|
||
_0x1e4ec3.HwlwlxDm = String(_0x29093b.dm);
|
||
}
|
||
if (_0x29093b.gg) {
|
||
_0x1e4ec3.Ggxh = String(_0x29093b.gg);
|
||
}
|
||
_0x1e4ec3.Xh = String(_0x1cc38e + 1);
|
||
_0x43cf60.push(_0x1e4ec3);
|
||
});
|
||
_0x273c80.length = 0;
|
||
_0x43cf60.forEach(_0x3ea552 => _0x273c80.push(_0x3ea552));
|
||
if (_0x366e4b && _0x366e4b.gfmc && _0x44e55d.FpdkGmfxxVO) {
|
||
const _0x59358c = _0x589af9(_0x366e4b.gfmc);
|
||
_0x44e55d.FpdkGmfxxVO.Ghfnsrmc = _0x59358c.name;
|
||
_0x59358c.tax && (_0x44e55d.FpdkGmfxxVO.Ghfnsrsbh = _0x59358c.tax, _0x4bb241("[" + _0x7be4b3 + "] 抬头里带了税号 " + _0x59358c.tax + ", 已自动拆到税号字段", "warn"));
|
||
}
|
||
if (_0x366e4b && _0x366e4b.nsrsbh && _0x44e55d.FpdkGmfxxVO) {
|
||
_0x44e55d.FpdkGmfxxVO.Ghfnsrsbh = String(_0x366e4b.nsrsbh).trim();
|
||
}
|
||
if (_0x366e4b && _0x366e4b.bz) {
|
||
_0x44e55d.Bz = String(_0x366e4b.bz);
|
||
}
|
||
const _0x105445 = _0x3aae84 && _0x3aae84.finalMask;
|
||
if (_0x105445) {
|
||
if (_0x105445.dksqrlxDm !== undefined) {
|
||
_0x44e55d.dksqrlxDm = _0x105445.dksqrlxDm;
|
||
}
|
||
if (_0x105445.bqlxDm !== undefined) {
|
||
_0x44e55d.bqlxDm = _0x105445.bqlxDm;
|
||
}
|
||
if (_0x105445.FpdklxDm !== undefined) {
|
||
_0x44e55d.FpdklxDm = _0x105445.FpdklxDm;
|
||
}
|
||
if (_0x105445.Sfqdht) {
|
||
_0x44e55d.Sfqdht = _0x105445.Sfqdht;
|
||
}
|
||
if (_0x105445.Sfzcncp) {
|
||
_0x44e55d.Sfzcncp = _0x105445.Sfzcncp;
|
||
}
|
||
if (_0x105445.Sfzcncp === "N") {
|
||
_0x4d2c42(_0x44e55d).forEach(_0x1d28c6 => {
|
||
{
|
||
if (!(Number(_0x1d28c6.Slzsl) > 0)) {
|
||
{
|
||
_0x1d28c6.Slzsl = "0.01";
|
||
_0x1d28c6.Se = Math.round((Number(_0x1d28c6.Je) - Number(_0x1d28c6.Je) / 1.01) * 100) / 100;
|
||
}
|
||
}
|
||
}
|
||
});
|
||
}
|
||
if (_0x105445.gmfSwjg && _0x44e55d.FpdkGmfxxVO) {
|
||
const _0x1f7032 = _0xb45e9(_0x44e55d);
|
||
_0x44e55d.FpdkGmfxxVO.ZgswjgDm = _0x1f7032.jg;
|
||
_0x44e55d.FpdkGmfxxVO.ZgswskfjDm = _0x1f7032.fj;
|
||
}
|
||
if (_0x105445.keepHwDm || _0x105445.keepHwJc) {
|
||
const _0x392fdf = _0x4d2c42(_0x1fcc28);
|
||
_0x43cf60.forEach((_0x3df630, _0x2250cf) => {
|
||
{
|
||
const _0x59f39b = _0x392fdf[_0x2250cf] || _0x392fdf[0];
|
||
if (_0x59f39b && _0x105445.keepHwDm) {
|
||
_0x3df630.HwlwlxDm = String(_0x59f39b.HwlwlxDm || "");
|
||
}
|
||
if (_0x59f39b && _0x105445.keepHwJc) {
|
||
_0x3df630.HwlwJc = String(_0x59f39b.HwlwJc || "");
|
||
}
|
||
}
|
||
});
|
||
if (_0x105445.keepHwDm) {
|
||
_0x4bb241("[" + _0x7be4b3 + "] 保留原商品码=" + _0x43cf60.map(_0x40d525 => _0x40d525.HwlwlxDm || "").join(","), "warn");
|
||
}
|
||
if (_0x105445.keepHwJc) {
|
||
_0x4bb241("[" + _0x7be4b3 + "] 保留原商品简称=" + _0x43cf60.map(_0x206653 => _0x206653.HwlwJc || "").join(","), "warn");
|
||
}
|
||
}
|
||
_0x4bb241("[" + _0x7be4b3 + "] 终态mask " + _0x105445.tag, "warn");
|
||
}
|
||
if (_0x2d0c69.att && _0x2d0c69.att.flzlFxjk) {
|
||
_0x44e55d.FlzlFxjk = _0x2d0c69.att.flzlFxjk;
|
||
}
|
||
const _0x19a20b = Math.round(_0x43cf60.reduce((_0x5a2ff8, _0x188729) => _0x5a2ff8 + (Number(_0x188729.Je) || 0), 0) * 100) / 100;
|
||
_0x4bb241("[" + _0x7be4b3 + "] 放大写入: 合计=" + _0x19a20b + " | " + _0xaba20f.map((_0x570646, _0x3e5d95) => "行" + (_0x3e5d95 + 1) + "=" + (_0x570646.qty || 0) + "x" + (_0x570646.dj || 0) + "=" + (_0x570646.je || 0) + (_0x570646.dw ? "(" + _0x570646.dw + ")" : "") + (_0x570646.gg ? "{" + _0x570646.gg + "}" : "") + (_0x570646.cl || _0x570646.pm ? "[" + (_0x570646.cl || "") + (_0x570646.pm ? "/" + _0x570646.pm : "") + "]" : "")).join("; ") + (_0x366e4b && _0x366e4b.gfmc ? " | 抬头=" + _0x366e4b.gfmc : "") + (_0x366e4b && _0x366e4b.nsrsbh ? " | 税号=" + _0x366e4b.nsrsbh : ""), "net");
|
||
if (_0x3aae84 && _0x3aae84.prepareOnly) {
|
||
return {
|
||
ok: true,
|
||
prepared: true,
|
||
payload: _0x44e55d
|
||
};
|
||
}
|
||
const _0x3125bb = await _0x5a9668(_0x44e55d);
|
||
const _0x296554 = await _0x579ebc(_0x44e55d, _0x3125bb);
|
||
const _0x1c6739 = _0x3b4d34(_0x296554);
|
||
const _0xd69258 = _0x34af71(_0x296554);
|
||
if (_0x1c6739 === "-53") {
|
||
_0x4bb241("[" + _0x7be4b3 + "] 放大保存被 -53 拦", "block");
|
||
return {
|
||
ok: false,
|
||
rc: "-53",
|
||
msg: "放大保存-53"
|
||
};
|
||
}
|
||
if (!_0xd69258.sqduuid) {
|
||
{
|
||
_0x4bb241("[" + _0x7be4b3 + "] 放大保存失败 rc=" + _0x1c6739 + " (" + (_0xd69258.returnMsg || "") + "): 放弃提交过闸草稿, 防止把过闸金额开出票", "block");
|
||
return {
|
||
ok: false,
|
||
rc: _0x1c6739,
|
||
msg: "放大保存失败:" + (_0xd69258.returnMsg || _0x1c6739)
|
||
};
|
||
}
|
||
}
|
||
const _0x229603 = _0xd69258.sqduuid;
|
||
await _0x54488c(_0x35cc89.pause);
|
||
await _0xa34def(_0x229603, _0x44e55d);
|
||
if (!_0x11317a.running) {
|
||
return {
|
||
ok: false,
|
||
rc: "STOP",
|
||
msg: "stop"
|
||
};
|
||
}
|
||
if (_0x3aae84 && _0x3aae84.verify) {
|
||
await _0x4371a1(_0x229603);
|
||
const _0x551595 = await _0xca6717("/sqsp/api/dksq/zzsfpdksqtjjk/v1/checkOnCommitFpdksq", _0x4a6660(_0x229603, _0x11317a.qpfsCtx));
|
||
const _0x31a68f = _0x3b4d34(_0x551595);
|
||
const _0x338581 = _0x34af71(_0x551595);
|
||
const _0x2aaeaf = (_0x338581.checkResult || []).map(_0x4b7f9d => _0x4b7f9d.zbbm + " " + (_0x4b7f9d.title || "")).join(" | ");
|
||
if (_0x31a68f !== "0" && _0x31a68f !== "1") {
|
||
{
|
||
_0x4bb241("[" + _0x7be4b3 + "] 放大预检拦截 rc=" + _0x31a68f + " " + (_0x338581.returnMsg || "") + " " + _0x2aaeaf + ": 不提交, 换下一组合(账号零污染)", "block");
|
||
return {
|
||
ok: false,
|
||
rc: "PRE_BLOCK",
|
||
msg: _0x338581.returnMsg || "",
|
||
tags: _0x2aaeaf
|
||
};
|
||
}
|
||
}
|
||
if (_0x3aae84.probeOnly) {
|
||
_0x11317a.lastProbePass = {
|
||
sq: _0x229603,
|
||
tag: _0x105445 ? _0x105445.tag : "原样",
|
||
mask: _0x105445 || {},
|
||
payload: _0x44e55d,
|
||
prov: _0x51ddf6,
|
||
at: Date.now()
|
||
};
|
||
_0x11317a.probePassList = _0x11317a.probePassList || [];
|
||
if (!_0x11317a.probePassList.some(_0x2a6e32 => _0x2a6e32.tag === _0x11317a.lastProbePass.tag)) {
|
||
_0x11317a.probePassList.push(_0x11317a.lastProbePass);
|
||
}
|
||
_0x4bb241("[" + _0x7be4b3 + "] 探测: 放大预检通过 rc=" + _0x31a68f + (_0x2aaeaf ? " " + _0x2aaeaf : "") + ",已记录 PASS 草稿可点【PASS直开】", "ok");
|
||
return {
|
||
ok: false,
|
||
rc: "PROBE",
|
||
probeVerdict: "PASS"
|
||
};
|
||
}
|
||
_0x4bb241("[" + _0x7be4b3 + "] 放大预检通过 rc=" + _0x31a68f + (_0x2aaeaf ? " " + _0x2aaeaf : "") + ", 执行提交", "ok");
|
||
}
|
||
const _0x40bb2b = await _0x539c6a({
|
||
sq: _0x229603
|
||
}, _0x2d0c69.att);
|
||
if (_0x40bb2b.ok) {
|
||
{
|
||
_0x4bb241("[" + _0x7be4b3 + "] 开票成功 fphm=" + _0x40bb2b.fp, "ok");
|
||
_0x11317a.fphms.push(_0x40bb2b.fp);
|
||
return {
|
||
ok: true,
|
||
fp: _0x40bb2b.fp,
|
||
cj: _0x40bb2b.cj
|
||
};
|
||
}
|
||
}
|
||
_0x4bb241("[" + _0x7be4b3 + "] 提交 rc=" + _0x40bb2b.rc + " tjjg=" + _0x40bb2b.tjjg + " " + _0x40bb2b.msg, "block");
|
||
return {
|
||
ok: false,
|
||
rc: _0x40bb2b.rc,
|
||
msg: _0x40bb2b.msg,
|
||
tjjg: _0x40bb2b.tjjg,
|
||
ybsfe: _0x34af71(_0x40bb2b.cj).ybsfe || ""
|
||
};
|
||
}
|
||
}
|
||
async function _0x197f2e() {
|
||
{
|
||
if (_0x11317a.running) {
|
||
return {
|
||
ok: false,
|
||
msg: "已有流程运行中, 请稍候"
|
||
};
|
||
}
|
||
const _0x458f20 = _0x11317a.lastSavePayload;
|
||
if (!_0x458f20) {
|
||
return {
|
||
ok: false,
|
||
msg: "未捕获到草稿载荷, 请返回填单页重新点【下一步】"
|
||
};
|
||
}
|
||
_0x11317a.running = true;
|
||
try {
|
||
const _0xc40731 = await _0x1f49aa();
|
||
if (!_0xc40731.ok) {
|
||
return {
|
||
ok: false,
|
||
msg: "卡密校验失败: " + _0xc40731.msg
|
||
};
|
||
}
|
||
const _0x540bab = _0x3d449a(_0x458f20);
|
||
_0x4bb241("自动模式: 接管提交 合计=" + _0x540bab.items.reduce((_0x53166e, _0x581022) => _0x53166e + (Number(_0x581022.je) || 0), 0) + " 抬头=" + _0x540bab.gfmc + " 明细=" + _0x540bab.items.length + "行", "warn");
|
||
_0x11317a.fphms = [];
|
||
if (_0x51ddf6 === "shaanxi" || _0x51ddf6 === "xinjiang") {
|
||
const _0x22aded = await _0x2f4446(_0x458f20, "auto", _0x540bab);
|
||
if (_0x22aded.ok) {
|
||
_0x4bb241("自动模式: 出票成功 fphm=" + _0x22aded.fp, "ok");
|
||
return {
|
||
ok: true,
|
||
fp: _0x22aded.fp,
|
||
cj: _0x22aded.cj
|
||
};
|
||
}
|
||
return {
|
||
ok: false,
|
||
msg: "提交失败 rc=" + _0x22aded.rc + " " + (_0x22aded.msg || _0x22aded.tags || "") + (_0x22aded.tjjg === "05" ? "(转材料审核)" : "")
|
||
};
|
||
}
|
||
const _0xfb02a0 = await _0x222fa2(_0x458f20, "auto");
|
||
if (!_0xfb02a0) {
|
||
return {
|
||
ok: false,
|
||
msg: "流程被停止"
|
||
};
|
||
}
|
||
if (_0xfb02a0.rc !== "0" && _0xfb02a0.rc !== "1") {
|
||
return {
|
||
ok: false,
|
||
msg: "过闸全部被拦(" + (_0xfb02a0.firstTags || _0xfb02a0.tags || _0xfb02a0.rc) + "), 已阻止提交防人审"
|
||
};
|
||
}
|
||
const _0x5876da = await _0x3a19ec(_0xfb02a0, _0x458f20, "auto", _0x540bab, _0x51ddf6 === "yunnan" ? {
|
||
verify: true
|
||
} : undefined);
|
||
if (_0x5876da.ok) {
|
||
{
|
||
_0x4bb241("自动模式: 出票成功 fphm=" + _0x5876da.fp, "ok");
|
||
return {
|
||
ok: true,
|
||
fp: _0x5876da.fp,
|
||
cj: _0x5876da.cj
|
||
};
|
||
}
|
||
}
|
||
return {
|
||
ok: false,
|
||
msg: "提交失败 rc=" + _0x5876da.rc + " " + (_0x5876da.msg || "") + (_0x5876da.tjjg === "05" ? "(转材料审核)" : "")
|
||
};
|
||
} finally {
|
||
{
|
||
_0x11317a.running = false;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
async function _0x3bc7c5() {
|
||
const _0x1bdaed = _0x11317a.lastSqduuid || _0x11317a.lastSavePayload && _0x11317a.lastSavePayload.Sqduuid || "";
|
||
const _0x2df85 = ["testSzc18", "testSzc19", "testSzc110", "testSzc111", "testSzc112", "testSzc113", "testPDF", "testSzcSpxxLike"];
|
||
for (const _0x43cee3 of _0x2df85) {
|
||
{
|
||
try {
|
||
{
|
||
const _0x14e0b9 = {
|
||
sqduuid: _0x1bdaed
|
||
};
|
||
if (_0x43cee3 === "testSzcSpxxLike") {
|
||
_0x14e0b9.hwlwmc = (_0x31985a(_0x11317a.lastSavePayload || {}) || {}).Hwlwlxmcss || (_0x31985a(_0x11317a.lastSavePayload || {}) || {}).HwlwJc || "";
|
||
}
|
||
const _0x43df66 = await _0xca6717("/sqsp/api/dksq/zzsfpdksqtjjk/v1/" + _0x43cee3, _0x14e0b9);
|
||
_0x4bb241("[testSzc] " + _0x43cee3 + " => " + JSON.stringify(_0x43df66).slice(0, 1200), "net");
|
||
}
|
||
} catch (_0x2cd898) {
|
||
_0x4bb241("[testSzc] " + _0x43cee3 + " 异常: " + (_0x2cd898 && _0x2cd898.message || _0x2cd898), "warn");
|
||
}
|
||
}
|
||
}
|
||
for (const _0x470ec5 of ["A20001", "A20002", "A20003", "A20011", "A20013", "A20023", "A20040"]) {
|
||
try {
|
||
const _0x48d67a = await fetch("/sqsp/api/dksq/zzsfpdksq/v1/queryZbbmClcs?zbbm=" + _0x470ec5 + "&t=" + Date.now(), {
|
||
method: "GET",
|
||
credentials: "include",
|
||
__dksqInternal: true
|
||
});
|
||
const _0x3f36f7 = await _0x48d67a.text();
|
||
_0x4bb241("[zbbm] " + _0x470ec5 + " => " + _0x3f36f7.slice(0, 1200), "net");
|
||
} catch (_0x194644) {
|
||
_0x4bb241("[zbbm] " + _0x470ec5 + " 异常: " + (_0x194644 && _0x194644.message || _0x194644), "warn");
|
||
}
|
||
}
|
||
}
|
||
async function _0x33820d() {
|
||
const _0x5f51da = _0x11317a.lastSavePayload;
|
||
if (!_0x5f51da) {
|
||
_0x4bb241("请先在填单页点【下一步】捕获载荷", "warn");
|
||
return;
|
||
}
|
||
if (_0x11317a.running) {
|
||
_0x4bb241("已有流程运行中", "warn");
|
||
return;
|
||
}
|
||
_0x11317a.running = true;
|
||
_0x11317a.fphms = [];
|
||
const _0x4a52f9 = _0x3d449a(_0x5f51da);
|
||
const _0x2fc51d = [{
|
||
tag: "基线无令牌",
|
||
native: false,
|
||
mode: "none"
|
||
}, {
|
||
tag: "标准体+原始小写令牌",
|
||
native: false,
|
||
mode: "lower"
|
||
}, {
|
||
tag: "标准体+首字母大写令牌",
|
||
native: false,
|
||
mode: "upper"
|
||
}, {
|
||
tag: "原生三字段+原始小写令牌",
|
||
native: true,
|
||
mode: "lower"
|
||
}, {
|
||
tag: "原生三字段+首字母大写令牌",
|
||
native: true,
|
||
mode: "upper"
|
||
}];
|
||
const _0x562352 = async (_0x3e2bc2, _0x12ea58) => {
|
||
try {
|
||
{
|
||
const _0x424215 = await _0xca6717("/sqsp/api/dksq/zzsfpdksq/v1/deletedksqd", {
|
||
sqduuid: _0x3e2bc2,
|
||
dksqrlxDm: _0x12ea58 || ""
|
||
});
|
||
_0x4bb241("[token] 清理测试草稿 sq=" + _0x3e2bc2 + " rc=" + _0x3b4d34(_0x424215) + " " + (_0x34af71(_0x424215).returnMsg || ""), "net");
|
||
}
|
||
} catch (_0x53af1c) {
|
||
{
|
||
_0x4bb241("[token] 清理测试草稿异常 sq=" + _0x3e2bc2 + ": " + (_0x53af1c && _0x53af1c.message || _0x53af1c), "warn");
|
||
}
|
||
}
|
||
};
|
||
try {
|
||
for (let _0x302938 = 0; _0x302938 < _0x2fc51d.length; _0x302938++) {
|
||
if (!_0x11317a.running) {
|
||
return;
|
||
}
|
||
const _0x4d9ced = _0x2fc51d[_0x302938];
|
||
const _0x3b45e8 = _0x302938 + 1 + "/" + _0x2fc51d.length;
|
||
const _0x52a27c = await _0x222fa2(_0x5f51da, "token" + _0x3b45e8);
|
||
if (!_0x52a27c) {
|
||
return;
|
||
}
|
||
if (_0x52a27c.rc !== "0" && _0x52a27c.rc !== "1") {
|
||
_0x4bb241("[token] " + _0x3b45e8 + " 小额过闸失败 rc=" + _0x52a27c.rc + " " + (_0x52a27c.tags || ""), "block");
|
||
return;
|
||
}
|
||
const _0x349514 = {};
|
||
["tsduuid", "emsg", "parMap_real", "syncDksqzbxx4Fxzb"].forEach(_0x5685d7 => {
|
||
if (_0x52a27c.d && _0x52a27c.d[_0x5685d7]) {
|
||
_0x349514[_0x5685d7] = _0x52a27c.d[_0x5685d7];
|
||
}
|
||
});
|
||
if (_0x349514.emsg) {
|
||
_0x349514.emsgCtrl = _0x349514.emsg;
|
||
}
|
||
const _0x3711cc = {};
|
||
Object.keys(_0x349514).forEach(_0x3119c9 => {
|
||
_0x3711cc[_0x3119c9 === "parMap_real" ? "ParMap_real" : _0x3119c9 === "syncDksqzbxx4Fxzb" ? "SyncDksqzbxx4Fxzb" : _0x3119c9.charAt(0).toUpperCase() + _0x3119c9.slice(1)] = _0x349514[_0x3119c9];
|
||
});
|
||
_0x4bb241("[token] " + _0x3b45e8 + " 新草稿小额章 sq=" + _0x52a27c.sq + " rc=" + _0x52a27c.rc + " 字段=" + Object.keys(_0x349514).map(_0x651b7d => _0x651b7d + "(" + String(_0x349514[_0x651b7d]).length + ")").join(","), "ok");
|
||
const _0x2972cc = await _0x3a19ec(_0x52a27c, _0x5f51da, "token" + _0x3b45e8, _0x4a52f9, {
|
||
prepareOnly: true
|
||
});
|
||
if (!_0x2972cc.payload) {
|
||
_0x4bb241("[token] " + _0x3b45e8 + " 面板载荷无效: " + (_0x2972cc.msg || _0x2972cc.rc), "block");
|
||
return;
|
||
}
|
||
const _0x309f98 = _0x2972cc.payload;
|
||
const _0x2e1d1d = await _0x5a9668(_0x309f98);
|
||
const _0x560222 = await _0x579ebc(_0x309f98, _0x2e1d1d);
|
||
const _0x217cd6 = _0x34af71(_0x560222);
|
||
const _0x484d36 = _0x217cd6.sqduuid;
|
||
if (!_0x484d36) {
|
||
_0x4bb241("[token] " + _0x3b45e8 + " 放大保存失败 rc=" + _0x3b4d34(_0x560222) + " " + (_0x217cd6.returnMsg || ""), "block");
|
||
await _0x562352(_0x52a27c.sq, _0x5f51da.dksqrlxDm || _0x5f51da.DkrlxDm || "");
|
||
return;
|
||
}
|
||
await _0x54488c(_0x35cc89.pause);
|
||
await _0xa34def(_0x484d36, _0x309f98);
|
||
await _0x4371a1(_0x484d36);
|
||
let _0x1ca286;
|
||
if (_0x4d9ced.native) {
|
||
_0x1ca286 = {
|
||
Sqduuid: _0x484d36,
|
||
SfmxList: [],
|
||
KsyskList: []
|
||
};
|
||
} else {
|
||
_0x1ca286 = _0x4a6660(_0x484d36, _0x11317a.qpfsCtx);
|
||
}
|
||
if (_0x4d9ced.mode === "lower") {
|
||
_0x1ca286 = Object.assign(_0x1ca286, _0x349514);
|
||
}
|
||
if (_0x4d9ced.mode === "upper") {
|
||
_0x1ca286 = Object.assign(_0x1ca286, _0x3711cc);
|
||
}
|
||
const _0x1436ac = await _0xca6717("/sqsp/api/dksq/zzsfpdksq/v1/commitFpdksq", _0x1ca286);
|
||
const _0x49178d = _0x34af71(_0x1436ac);
|
||
const _0x4db4ce = _0x49178d.fphm || _0x49178d.data && _0x49178d.data.fphm || "";
|
||
const _0x5a8dbb = String(_0x49178d.tjjgDm || "");
|
||
_0x4bb241("[token] " + _0x3b45e8 + " " + _0x4d9ced.tag + " => rc=" + _0x3b4d34(_0x1436ac) + " tjjg=" + (_0x5a8dbb || "-") + " fphm=" + (_0x4db4ce || "-") + " msg=" + (_0x49178d.returnMsg || ""), _0x4db4ce ? "ok" : "block");
|
||
if (_0x4db4ce) {
|
||
_0x4bb241("[token] 出票成功 fphm=" + _0x4db4ce + ":令牌回放有效。云南无 05, 后续去红冲即可", "ok");
|
||
_0x11317a.fphms.push(_0x4db4ce);
|
||
return;
|
||
}
|
||
if (_0x3b4d34(_0x1436ac) === "0" && _0x5a8dbb === "05") {
|
||
_0x4bb241("[token] 已进入材料审核(05), 停止后续变体", "block");
|
||
return;
|
||
}
|
||
await _0x562352(_0x484d36, _0x1ca286.dksqrlxDm || _0x5f51da.dksqrlxDm || _0x5f51da.DkrlxDm || "");
|
||
await _0x54488c(_0x35cc89.pause);
|
||
}
|
||
_0x4bb241("[token] 全部独立草稿变体均未出票, 按各变体 rc 判断令牌回放价值", "block");
|
||
} finally {
|
||
_0x11317a.running = false;
|
||
}
|
||
}
|
||
async function _0x4da11c() {
|
||
const _0x4c6e26 = String(prompt("输入要跨门户读取的 sqduuid", _0x11317a.lastSqduuid || "") || "").trim();
|
||
if (!_0x4c6e26) {
|
||
return;
|
||
}
|
||
if (_0x11317a.running) {
|
||
_0x4bb241("已有流程运行中", "warn");
|
||
return;
|
||
}
|
||
_0x11317a.running = true;
|
||
try {
|
||
_0x4bb241("[xprov] 当前门户=" + _0x51ddf6 + " 只读查询 sq=" + _0x4c6e26, "warn");
|
||
const _0xf457fe = await _0xca6717("/sqsp/api/dksq/zzsfpdksq/v1/queryBigJSON", {
|
||
Sqduuid: _0x4c6e26
|
||
});
|
||
const _0x84d09f = _0x34af71(_0xf457fe);
|
||
const _0x53d58d = _0x84d09f.data || {};
|
||
_0x3b4d34(_0xf457fe) !== "0" || !_0x53d58d.sqduuid ? _0x4bb241("[xprov] 跨门户读取失败 rc=" + _0x3b4d34(_0xf457fe) + " " + (_0x84d09f.returnMsg || "") + ":只读查询不共享,但继续直接调用当前门户预检验证", "block") : _0x4bb241("[xprov] 跨门户读取成功 sq=" + _0x53d58d.sqduuid + " dksqzt=" + (_0x84d09f.dksqztDm || "?") + ":当前门户能识别该草稿", "ok");
|
||
const _0x5dbb81 = await _0xca6717("/sqsp/api/dksq/zzsfpdksqtjjk/v1/checkOnCommitFpdksq", {
|
||
Sqduuid: _0x4c6e26,
|
||
SfmxList: [],
|
||
KsyskList: []
|
||
});
|
||
const _0x4abf5e = _0x34af71(_0x5dbb81);
|
||
const _0x2deb77 = (_0x4abf5e.checkResult || []).map(_0x5639ff => _0x5639ff.zbbm + " " + (_0x5639ff.title || "")).join(" | ");
|
||
_0x4bb241("[xprov] 跨门户预检 sq=" + _0x4c6e26 + " rc=" + _0x3b4d34(_0x5dbb81) + " je=" + (_0x4abf5e.dksqje || "?") + " msg=" + (_0x4abf5e.returnMsg || "") + " tsduuid=" + (_0x4abf5e.tsduuid || "") + " " + _0x2deb77, _0x3b4d34(_0x5dbb81) === "0" || _0x3b4d34(_0x5dbb81) === "1" ? "ok" : "block");
|
||
if (_0x3b4d34(_0x5dbb81) === "0" || _0x3b4d34(_0x5dbb81) === "1") {
|
||
_0x4bb241("[xprov] 预检通过:可回原省用同 sqduuid 点【跨门户提交】验证 commit 是否共享承认", "ok");
|
||
}
|
||
} catch (_0xbe3262) {
|
||
_0x4bb241("[xprov] 跨门户读取/预检异常: " + (_0xbe3262 && _0xbe3262.message || _0xbe3262), "block");
|
||
} finally {
|
||
_0x11317a.running = false;
|
||
}
|
||
}
|
||
async function _0x105b71() {
|
||
{
|
||
const _0x3ecc94 = String(prompt("输入要用当前门户真实提交的 sqduuid", _0x11317a.lastSqduuid || "") || "").trim();
|
||
if (!_0x3ecc94) {
|
||
return;
|
||
}
|
||
if (_0x11317a.running) {
|
||
_0x4bb241("已有流程运行中", "warn");
|
||
return;
|
||
}
|
||
if (!confirm("将用当前门户(" + _0x51ddf6 + ")真实提交 sqduuid=" + _0x3ecc94 + "。可能出票或进审核,是否继续?")) {
|
||
return;
|
||
}
|
||
_0x11317a.running = true;
|
||
try {
|
||
{
|
||
const _0x4fdad3 = await _0xca6717("/sqsp/api/dksq/zzsfpdksq/v1/commitFpdksq", {
|
||
Sqduuid: _0x3ecc94,
|
||
SfmxList: [],
|
||
KsyskList: []
|
||
});
|
||
const _0x4dac45 = _0x34af71(_0x4fdad3);
|
||
const _0x31def7 = _0x4dac45.fphm || _0x4dac45.data && _0x4dac45.data.fphm || "";
|
||
_0x4bb241("[xprov] 当前门户=" + _0x51ddf6 + " 跨门户提交 sq=" + _0x3ecc94 + " rc=" + _0x3b4d34(_0x4fdad3) + " tjjg=" + (_0x4dac45.tjjgDm || "-") + " fphm=" + (_0x31def7 || "-") + " msg=" + (_0x4dac45.returnMsg || ""), _0x31def7 ? "ok" : "block");
|
||
if (_0x31def7) {
|
||
_0x4bb241("[xprov] 出票成功 fphm=" + _0x31def7, "ok");
|
||
}
|
||
}
|
||
} catch (_0x298d00) {
|
||
_0x4bb241("[xprov] 跨门户提交异常: " + (_0x298d00 && _0x298d00.message || _0x298d00), "block");
|
||
} finally {
|
||
_0x11317a.running = false;
|
||
}
|
||
}
|
||
}
|
||
async function _0x2d9113() {
|
||
{
|
||
const _0x2cc25d = _0x11317a.probePassList || (_0x11317a.lastProbePass ? [_0x11317a.lastProbePass] : []);
|
||
if (!_0x2cc25d.length) {
|
||
_0x4bb241("没有可直开的 PASS 草稿, 请先跑【探测组合】并等到真实金额预检通过", "warn");
|
||
return;
|
||
}
|
||
if (_0x11317a.running) {
|
||
{
|
||
_0x4bb241("已有流程运行中", "warn");
|
||
return;
|
||
}
|
||
}
|
||
let _0x32f49f = _0x2cc25d.find(_0x23f59e => String(_0x23f59e.tag).startsWith("m9")) || _0x2cc25d[0];
|
||
if (_0x2cc25d.length > 1) {
|
||
const _0x5e1c4a = _0x2cc25d.indexOf(_0x32f49f) + 1;
|
||
const _0x5614e4 = _0x2cc25d.map((_0x58a42a, _0x3538bc) => _0x3538bc + 1 + ". " + _0x58a42a.tag).join("\n");
|
||
const _0x10b100 = prompt("选择要直开的 PASS 组合(输入序号):\n" + _0x5614e4, String(_0x5e1c4a));
|
||
if (_0x10b100 === null) {
|
||
return;
|
||
}
|
||
const _0x13dae2 = Number(_0x10b100);
|
||
if (_0x13dae2 >= 1 && _0x13dae2 <= _0x2cc25d.length) {
|
||
_0x32f49f = _0x2cc25d[_0x13dae2 - 1];
|
||
}
|
||
}
|
||
const _0x16d89c = _0x4d2c42(_0x32f49f.payload || {}).reduce((_0x1d3729, _0x11db3d) => _0x1d3729 + (Number(_0x11db3d.Je) || 0), 0);
|
||
if (!confirm("将对选定 PASS 草稿真实 commit:\n组合=" + _0x32f49f.tag + "\n省份=" + _0x32f49f.prov + "\n金额=" + _0x16d89c + "\n可能出票/需缴税/进审核,是否继续?")) {
|
||
return;
|
||
}
|
||
_0x11317a.running = true;
|
||
try {
|
||
await _0xa34def(_0x32f49f.sq, _0x32f49f.payload);
|
||
await _0x4371a1(_0x32f49f.sq);
|
||
const _0x18721f = await _0xca6717("/sqsp/api/dksq/zzsfpdksq/v1/commitFpdksq", {
|
||
Sqduuid: _0x32f49f.sq,
|
||
SfmxList: [],
|
||
KsyskList: []
|
||
});
|
||
const _0x2d07b9 = _0x34af71(_0x18721f);
|
||
const _0x28cfd7 = _0x2d07b9.fphm || _0x2d07b9.data && _0x2d07b9.data.fphm || "";
|
||
_0x4bb241("[pcommit] " + _0x32f49f.tag + " sq=" + _0x32f49f.sq + " rc=" + _0x3b4d34(_0x18721f) + " tjjg=" + (_0x2d07b9.tjjgDm || "-") + " fphm=" + (_0x28cfd7 || "-") + " msg=" + (_0x2d07b9.returnMsg || ""), _0x28cfd7 ? "ok" : "block");
|
||
if (_0x28cfd7) {
|
||
_0x4bb241("[pcommit] 出票成功 fphm=" + _0x28cfd7, "ok");
|
||
}
|
||
} catch (_0x2d2d3a) {
|
||
_0x4bb241("[pcommit] 直开异常: " + (_0x2d2d3a && _0x2d2d3a.message || _0x2d2d3a), "block");
|
||
} finally {
|
||
_0x11317a.running = false;
|
||
}
|
||
}
|
||
}
|
||
async function _0x360530() {
|
||
const _0x13fb8b = _0x11317a.lastSavePayload;
|
||
if (!_0x13fb8b) {
|
||
_0x4bb241("请先在填单页点【下一步】捕获载荷", "warn");
|
||
return;
|
||
}
|
||
if (_0x11317a.running) {
|
||
{
|
||
_0x4bb241("已有流程运行中", "warn");
|
||
return;
|
||
}
|
||
}
|
||
_0x11317a.running = true;
|
||
const _0x1ab12c = _0x3d449a(_0x13fb8b);
|
||
try {
|
||
{
|
||
for (const _0x1a2ace of [0, 5, 20, 50, 100, 200]) {
|
||
if (!_0x11317a.running) {
|
||
return;
|
||
}
|
||
const _0x2576ea = "race" + _0x1a2ace + "ms";
|
||
const _0x1727dd = await _0x222fa2(_0x13fb8b, _0x2576ea);
|
||
if (!_0x1727dd) {
|
||
return;
|
||
}
|
||
if (_0x1727dd.rc !== "0" && _0x1727dd.rc !== "1") {
|
||
_0x4bb241("[race] " + _0x2576ea + " 小额过闸失败 rc=" + _0x1727dd.rc + " " + (_0x1727dd.tags || ""), "block");
|
||
return;
|
||
}
|
||
const _0x5ed903 = await _0x3a19ec(_0x1727dd, _0x13fb8b, _0x2576ea, _0x1ab12c, {
|
||
prepareOnly: true
|
||
});
|
||
if (!_0x5ed903.payload) {
|
||
_0x4bb241("[race] " + _0x2576ea + " 面板载荷无效: " + (_0x5ed903.msg || _0x5ed903.rc), "block");
|
||
return;
|
||
}
|
||
const _0x19620c = _0x5ed903.payload;
|
||
const _0x4b74e9 = await _0x5a9668(_0x19620c);
|
||
await _0xa34def(_0x1727dd.sq, _0x19620c);
|
||
await _0x4371a1(_0x1727dd.sq);
|
||
const _0x530875 = Date.now();
|
||
const _0x4a85ee = _0x579ebc(_0x19620c, _0x4b74e9);
|
||
if (_0x1a2ace) {
|
||
await _0x54488c(_0x1a2ace);
|
||
}
|
||
const _0x4dfad9 = Date.now();
|
||
const _0x3329df = _0xca6717("/sqsp/api/dksq/zzsfpdksq/v1/commitFpdksq", {
|
||
Sqduuid: _0x1727dd.sq,
|
||
SfmxList: [],
|
||
KsyskList: []
|
||
});
|
||
let _0x174f0f;
|
||
let _0x21ca56;
|
||
try {
|
||
[_0x174f0f, _0x21ca56] = await Promise.all([_0x4a85ee, _0x3329df]);
|
||
} catch (_0x20dd41) {
|
||
_0x4bb241("[race] " + _0x2576ea + " 请求异常: " + (_0x20dd41 && _0x20dd41.message || _0x20dd41), "block");
|
||
continue;
|
||
}
|
||
const _0x11d253 = Date.now();
|
||
const _0x2d3da2 = _0x34af71(_0x174f0f);
|
||
const _0x4c85ff = _0x34af71(_0x21ca56);
|
||
const _0x2c5b34 = _0x4c85ff.fphm || _0x4c85ff.data && _0x4c85ff.data.fphm || "";
|
||
const _0x5c0bd8 = String(_0x4c85ff.tjjgDm || "");
|
||
_0x4bb241("[race] " + _0x2576ea + " 时序: 保存开始=" + _0x530875 + " commit开始=" + _0x4dfad9 + " 双响应=" + _0x11d253 + " | 保存rc=" + _0x3b4d34(_0x174f0f) + " commit rc=" + _0x3b4d34(_0x21ca56) + " tjjg=" + (_0x5c0bd8 || "-") + " fphm=" + (_0x2c5b34 || "-") + " msg=" + (_0x4c85ff.returnMsg || ""), _0x2c5b34 ? "ok" : "block");
|
||
if (_0x2c5b34) {
|
||
_0x4bb241("[race] 出票成功 fphm=" + _0x2c5b34 + ":时序竞争有效。云南无 05, 后续去红冲即可", "ok");
|
||
_0x11317a.fphms.push(_0x2c5b34);
|
||
return;
|
||
}
|
||
if (_0x3b4d34(_0x21ca56) === "0" && _0x5c0bd8 === "05") {
|
||
_0x4bb241("[race] 已进入材料审核(05), 停止后续变体", "block");
|
||
return;
|
||
}
|
||
}
|
||
_0x4bb241("[race] 全部延迟变体均未出票, 时序竞争未复现", "block");
|
||
}
|
||
} finally {
|
||
{
|
||
_0x11317a.running = false;
|
||
}
|
||
}
|
||
}
|
||
const _0x4acca7 = [{
|
||
tag: "m0原样(自产免税对照)"
|
||
}, {
|
||
tag: "m15机关切省+签合同(自产免税)",
|
||
gmfSwjg: true,
|
||
Sfqdht: "Y"
|
||
}, {
|
||
tag: "m11只签合同(自产免税)",
|
||
Sfqdht: "Y"
|
||
}, {
|
||
tag: "m9只切机关(自产免税)",
|
||
gmfSwjg: true
|
||
}, {
|
||
tag: "m20机关切省+保留原商品码/简称(自产免税)",
|
||
gmfSwjg: true,
|
||
keepHwDm: true,
|
||
keepHwJc: true
|
||
}];
|
||
async function _0x195b0c(_0x2c2249) {
|
||
const _0x4e445c = _0x3d449a(_0x2c2249);
|
||
_0x4bb241("探测读取面板: 合计=" + _0x4e445c.items.reduce((_0x24f895, _0x207aa5) => _0x24f895 + (Number(_0x207aa5.je) || 0), 0) + " 抬头=" + _0x4e445c.gfmc + " 明细=" + _0x4e445c.items.length + "行", "warn");
|
||
const _0x13e72f = Number(_0x35cc89.gateJe) || 10;
|
||
_0x11317a.probePassList = [];
|
||
_0x11317a.lastProbePass = null;
|
||
_0x4bb241("探测模式: 变体 x 放大预检, 只看不提交, 账号零污染", "warn");
|
||
for (const _0x57e488 of _0x4acca7) {
|
||
if (!_0x11317a.running) {
|
||
return;
|
||
}
|
||
const _0x2530de = await _0x2d0672(_0x2c2249, _0x57e488, _0x13e72f, "probe");
|
||
if (!_0x2530de) {
|
||
_0x4bb241("[probe] " + _0x57e488.tag + " => 过闸失败(无草稿)", "block");
|
||
continue;
|
||
}
|
||
const _0x3f480e = await _0x3a19ec(_0x2530de, _0x2c2249, "probe", _0x4e445c, {
|
||
finalMask: _0x57e488,
|
||
verify: true,
|
||
probeOnly: true
|
||
});
|
||
_0x4bb241("[probe] " + _0x57e488.tag + " => " + _0x3f480e.rc + (_0x3f480e.probeVerdict === "PASS" ? " 可过!" : " " + (_0x3f480e.tags || _0x3f480e.msg || "")), _0x3f480e.probeVerdict === "PASS" ? "ok" : "block");
|
||
}
|
||
_0x4bb241("探测结束: 未提交任何单, 零污染。有 PASS 的组合再单独 commit 验证", "ok");
|
||
}
|
||
async function _0x2f4446(_0x55df18, _0x4eb2bb, _0x35dfa0) {
|
||
const _0x40e2b4 = Number(_0x35cc89.gateJe) || 10;
|
||
let _0x3284e0 = null;
|
||
for (const _0x2a46dd of _0x1bc6ad) {
|
||
if (!_0x11317a.running) {
|
||
return {
|
||
ok: false,
|
||
rc: "STOP",
|
||
msg: "stop"
|
||
};
|
||
}
|
||
const _0x1b2c37 = await _0x2d0672(_0x55df18, _0x2a46dd, _0x40e2b4, _0x4eb2bb);
|
||
if (!_0x1b2c37) {
|
||
return {
|
||
ok: false,
|
||
rc: "STOP",
|
||
msg: "stop"
|
||
};
|
||
}
|
||
if (_0x1b2c37.rc !== "0" && _0x1b2c37.rc !== "1") {
|
||
_0x3284e0 = {
|
||
ok: false,
|
||
rc: _0x1b2c37.rc,
|
||
msg: _0x1b2c37.d && _0x1b2c37.d.returnMsg || _0x1b2c37.tags || "",
|
||
tags: _0x1b2c37.tags || ""
|
||
};
|
||
_0x4bb241("[" + _0x4eb2bb + "] " + _0x2a46dd.tag + " 小闸被拦 rc=" + _0x1b2c37.rc + ", 换下一组合", "warn");
|
||
continue;
|
||
}
|
||
const _0x4c5f15 = await _0x3a19ec(_0x1b2c37, _0x55df18, _0x4eb2bb, _0x35dfa0, {
|
||
finalMask: _0x2a46dd,
|
||
verify: true
|
||
});
|
||
if (_0x4c5f15.ok) {
|
||
return _0x4c5f15;
|
||
}
|
||
if (_0x4c5f15.rc === "PRE_BLOCK") {
|
||
_0x3284e0 = _0x4c5f15;
|
||
continue;
|
||
}
|
||
return _0x4c5f15;
|
||
}
|
||
return _0x3284e0 || {
|
||
ok: false,
|
||
rc: "PRE_BLOCK",
|
||
msg: "全部组合均未通过",
|
||
tags: ""
|
||
};
|
||
}
|
||
async function _0x1e111e(_0xd855c0, _0x43b6cc) {
|
||
{
|
||
const _0x2a5226 = _0xd855c0.length;
|
||
if (_0x2a5226 > 1) {
|
||
_0x4bb241(_0x51ddf6 + " 判官模式提示: 每个组合都会建草稿, 批量多张时废草稿可能卡 -93, 建议单张跑", "warn");
|
||
}
|
||
let _0x12628b = 0;
|
||
for (let _0xfef16e = 0; _0xfef16e < _0x2a5226; _0xfef16e++) {
|
||
if (!_0x11317a.running) {
|
||
break;
|
||
}
|
||
const _0x403ee5 = _0xd855c0[_0xfef16e];
|
||
const _0x3214ed = "#" + (_0xfef16e + 1) + "/" + _0x2a5226;
|
||
_0x4bb241("--- 第 " + (_0xfef16e + 1) + "/" + _0x2a5226 + " 张: 逐组合终态mask+大额预检 ---", "info");
|
||
const _0x5a6f71 = await _0x2f4446(_0x43b6cc, _0x3214ed, _0x403ee5);
|
||
if (_0x5a6f71.ok) {
|
||
{
|
||
_0x12628b++;
|
||
continue;
|
||
}
|
||
}
|
||
if (_0x5a6f71.rc === "STOP") {
|
||
return;
|
||
}
|
||
if (_0x5a6f71.rc === "-93") {
|
||
_0x16adff({
|
||
rc: "-93"
|
||
});
|
||
return;
|
||
}
|
||
if (String(_0x5a6f71.msg || "").indexOf("二次认证") !== -1 || String(_0x5a6f71.msg || "").indexOf("刷脸") !== -1) {
|
||
{
|
||
_0x4bb241("[" + _0x3214ed + "] 提交要求四级认证(刷脸): 开【刷脸模式】-> 点页面提交完成刷脸 -> 关掉刷脸模式 -> 再点一键开票", "block");
|
||
return;
|
||
}
|
||
}
|
||
if (_0x5a6f71.tjjg === "01") {
|
||
_0x4bb241("[" + _0x3214ed + "] 提交进入缴款(01): 应缴 " + (_0x5a6f71.ybsfe || "?") + " 元, 停止后续组合", "ok");
|
||
return;
|
||
}
|
||
if (_0x5a6f71.rc === "0" && _0x5a6f71.tjjg === "05") {
|
||
{
|
||
_0x4bb241("[" + _0x3214ed + "] 已进入材料审核(05), 剩余组合会被 -93 卡单, 停止", "block");
|
||
return;
|
||
}
|
||
}
|
||
_0x4bb241("[" + _0x3214ed + "] 全部组合均未通过: 最后结果 rc=" + _0x5a6f71.rc + " " + (_0x5a6f71.msg || _0x5a6f71.tags || "") + ", 导出日志拆规则", "block");
|
||
}
|
||
_0x4bb241("一键开票结束(" + _0x51ddf6 + "判官模式): 成功 " + _0x12628b + "/" + _0x2a5226 + " 张" + (_0x12628b ? " | fphm=" + _0x11317a.fphms.join(",") : ""), _0x12628b ? "ok" : "block");
|
||
}
|
||
}
|
||
async function _0x426ade() {
|
||
if (!_0x3e7c92) {
|
||
_0x4bb241("当前地区暂不支持,目前仅支持云南/辽宁/陕西/新疆", "block");
|
||
return;
|
||
}
|
||
const _0x48867d = _0x11317a.lastSavePayload;
|
||
if (!_0x48867d) {
|
||
{
|
||
_0x4bb241("一键开票: 请先在填单页点【下一步】生成草稿", "warn");
|
||
return;
|
||
}
|
||
}
|
||
const _0x34f066 = Number(_0x35cc89.gateJe) || 10;
|
||
const _0x39f9af = Number(_0x35cc89.ticketCount) || 1;
|
||
const _0xfe8f8b = [];
|
||
for (let _0x525e6b = 0; _0x525e6b < _0x39f9af; _0x525e6b++) {
|
||
{
|
||
const _0xba4bc0 = _0x3d449a(_0x48867d, _0x525e6b);
|
||
_0xfe8f8b.push(_0xba4bc0);
|
||
}
|
||
}
|
||
while (_0xfe8f8b.length < _0x39f9af) {
|
||
_0xfe8f8b.push({
|
||
gfmc: "",
|
||
nsrsbh: "",
|
||
items: []
|
||
});
|
||
}
|
||
const _0x44a509 = _0xfe8f8b.map(_0x483091 => Math.round(_0x483091.items.reduce((_0x8aa51b, _0xc06771) => _0x8aa51b + (Number(_0xc06771.je) || 0), 0) * 100) / 100);
|
||
const _0x59cdfd = _0x44a509.map((_0x54b2b2, _0x21e350) => "#" + (_0x21e350 + 1) + "=" + _0x54b2b2 + (_0xfe8f8b[_0x21e350].gfmc ? "|抬头:" + _0xfe8f8b[_0x21e350].gfmc : "") + (_0xfe8f8b[_0x21e350].nsrsbh ? "|税号:" + _0xfe8f8b[_0x21e350].nsrsbh : "") + "|明细:" + _0xfe8f8b[_0x21e350].items.length + "行").join("; ");
|
||
_0x4bb241("一键开票: 张数 " + _0x39f9af + " | " + _0x59cdfd + " | 过闸 " + _0x34f066 + " | 批量拿章 -> 逐张放大提交");
|
||
_0x11317a.fphms = [];
|
||
if (_0x51ddf6 === "shaanxi" || _0x51ddf6 === "xinjiang") {
|
||
await _0x1e111e(_0xfe8f8b, _0x48867d);
|
||
return;
|
||
}
|
||
const _0x42e168 = [];
|
||
for (let _0x15a75e = 1; _0x15a75e <= _0x39f9af; _0x15a75e++) {
|
||
if (!_0x11317a.running) {
|
||
break;
|
||
}
|
||
_0x4bb241("--- 第 " + _0x15a75e + "/" + _0x39f9af + " 张: 过闸拿章 ---", "info");
|
||
const _0x2b5afd = await _0x222fa2(_0x48867d, _0x15a75e);
|
||
if (!_0x2b5afd) {
|
||
break;
|
||
}
|
||
_0x42e168.push(_0x2b5afd);
|
||
}
|
||
const _0x1ccdaa = _0x42e168.filter(_0x3a335a => _0x3a335a.rc === "0" || _0x3a335a.rc === "1");
|
||
_0x4bb241("阶段A: 建草稿 " + _0x42e168.length + " 张 | 干净章 " + _0x1ccdaa.length + " | 阻断章 " + (_0x42e168.length - _0x1ccdaa.length));
|
||
if (!_0x1ccdaa.length) {
|
||
{
|
||
const _0x4bb071 = _0x42e168[_0x42e168.length - 1];
|
||
if (_0x4bb071 && _0x4bb071.rc === "-3") {
|
||
_0x4bb241("全部候选被拦(含新 mask m10/m11): 启动 v1.9.30 认证附件新通道(每张一次性)", "net");
|
||
const _0x5f4a07 = await _0x11e78f(_0x4bb071.small, _0x4bb071.d, _0x4bb071.sq);
|
||
if (_0x5f4a07 && _0x11317a.running) {
|
||
{
|
||
_0x4bb071.small.FlzlFxjk = _0x5f4a07.flzlFxjk;
|
||
const _0x141cf3 = await _0x5a9668(_0x4bb071.small);
|
||
const _0x421e99 = await _0x579ebc(_0x4bb071.small, _0x141cf3);
|
||
const _0x55dc6d = _0x34af71(_0x421e99);
|
||
const _0x4efc90 = _0x55dc6d.sqduuid;
|
||
if (_0x4efc90) {
|
||
_0x11317a.lastSqduuid = _0x4efc90;
|
||
await _0x54488c(_0x35cc89.pause);
|
||
await _0xa34def(_0x4efc90, _0x4bb071.small);
|
||
await _0x4371a1(_0x4efc90);
|
||
const _0x2c3797 = await _0xca6717("/sqsp/api/dksq/zzsfpdksqtjjk/v1/checkOnCommitFpdksq", _0x4a6660(_0x4efc90, _0x11317a.qpfsCtx));
|
||
const _0x4df4ba = _0x3b4d34(_0x2c3797);
|
||
if (_0x4df4ba === "0" || _0x4df4ba === "1") {
|
||
{
|
||
const _0x58ca03 = {
|
||
sq: _0x4efc90,
|
||
rc: _0x4df4ba,
|
||
d: _0x34af71(_0x2c3797),
|
||
att: _0x5f4a07,
|
||
small: _0x4bb071.small,
|
||
tags: "附件直通v1.9.30",
|
||
mask: _0x4bb071.mask
|
||
};
|
||
const _0x25ac0c = await _0x3a19ec(_0x58ca03, _0x48867d, "D", _0xfe8f8b[0]);
|
||
if (_0x25ac0c.ok) {
|
||
_0x4bb241("附件新通道出票成功 fphm=" + _0x25ac0c.fp, "ok");
|
||
return;
|
||
}
|
||
_0x4bb241("附件新通道放大提交: rc=" + _0x25ac0c.rc + " " + (_0x25ac0c.msg || ""), "block");
|
||
return;
|
||
}
|
||
}
|
||
_0x4bb241("附件新通道复验仍 rc=" + _0x4df4ba + ": 放弃并阻止提交防人工审核", "block");
|
||
return;
|
||
}
|
||
_0x4bb241("附件新通道回写草稿失败, 阻止提交防人工审核", "block");
|
||
return;
|
||
}
|
||
}
|
||
_0x4bb241("0 张干净章: 附件闸未突破, 已阻止提交放大单, 防止开出人工审核票", "block");
|
||
return;
|
||
}
|
||
_0x4bb241("0 张干净章: 全部候选被盖阻断章。对最后一张草稿放大提交做最终验证(历史该路必 -90, 作为证据)", "block");
|
||
if (_0x42e168.length && _0x11317a.running) {
|
||
{
|
||
const _0x443e90 = _0x42e168[_0x42e168.length - 1];
|
||
const _0xc40ecc = await _0x3a19ec(_0x443e90, _0x48867d, "D", _0xfe8f8b[0]);
|
||
if (_0xc40ecc.ok) {
|
||
_0x4bb241("绝境出票成功 fphm=" + _0xc40ecc.fp, "ok");
|
||
} else {
|
||
if (_0xc40ecc.rc === "-93") {
|
||
_0x16adff({
|
||
rc: "-93"
|
||
});
|
||
} else {
|
||
_0x4bb241("绝境提交 rc=" + _0xc40ecc.rc + " " + (_0xc40ecc.msg || "") + ": 金额池已空或规则全线封锁, 导出日志按规则号继续拆", "block");
|
||
}
|
||
}
|
||
}
|
||
}
|
||
return;
|
||
}
|
||
}
|
||
let _0x209c00 = 0;
|
||
for (const _0x24f81e of _0x1ccdaa) {
|
||
if (!_0x11317a.running) {
|
||
break;
|
||
}
|
||
const _0x4f8328 = "#" + (_0x209c00 + 1) + "/" + _0x1ccdaa.length;
|
||
const _0x2e1fd5 = _0xfe8f8b[Math.min(_0x209c00, _0xfe8f8b.length - 1)];
|
||
const _0x5392e5 = await _0x3a19ec(_0x24f81e, _0x48867d, _0x4f8328, _0x2e1fd5, _0x51ddf6 === "yunnan" ? {
|
||
verify: true
|
||
} : undefined);
|
||
if (_0x5392e5.ok) {
|
||
_0x209c00++;
|
||
continue;
|
||
}
|
||
if (_0x5392e5.rc === "-93") {
|
||
_0x16adff({
|
||
rc: "-93"
|
||
});
|
||
break;
|
||
}
|
||
if (_0x5392e5.rc === "-101") {
|
||
_0x4bb241("[" + _0x4f8328 + "] -101: 该草稿事中校验未关联, 跳过", "block");
|
||
continue;
|
||
}
|
||
if (_0x5392e5.rc === "-90") {
|
||
_0x4bb241("[" + _0x4f8328 + "] -90: 该草稿章已废, 跳过", "block");
|
||
continue;
|
||
}
|
||
if (_0x5392e5.rc === "-2") {
|
||
_0x4bb241("[" + _0x4f8328 + "] commit 复检阻断: " + _0x5392e5.msg + ", 跳过", "block");
|
||
continue;
|
||
}
|
||
if (_0x5392e5.rc === "STOP") {
|
||
break;
|
||
}
|
||
_0x4bb241("[" + _0x4f8328 + "] 未知返回 rc=" + _0x5392e5.rc + " " + _0x5392e5.msg + ", 继续下一张", "block");
|
||
}
|
||
_0x4bb241("一键开票结束: 成功 " + _0x209c00 + "/" + _0x1ccdaa.length + " 张" + (_0x209c00 ? " | fphm=" + _0x11317a.fphms.join(",") : ""), _0x209c00 ? "ok" : "block");
|
||
}
|
||
function _0x4337be(_0x3ea74b) {
|
||
if (typeof _0x3ea74b === "string") {
|
||
return _0x3ea74b.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g, " ");
|
||
}
|
||
if (Array.isArray(_0x3ea74b)) {
|
||
return _0x3ea74b.map(_0x4337be);
|
||
}
|
||
if (_0x3ea74b && typeof _0x3ea74b === "object") {
|
||
{
|
||
const _0x22ab2c = {};
|
||
for (const _0x4083a7 in _0x3ea74b) {
|
||
try {
|
||
{
|
||
_0x22ab2c[_0x4083a7] = _0x4337be(_0x3ea74b[_0x4083a7]);
|
||
}
|
||
} catch (_0x4e5363) {}
|
||
}
|
||
return _0x22ab2c;
|
||
}
|
||
}
|
||
return _0x3ea74b;
|
||
}
|
||
function _0x4c2a9c() {
|
||
const _0x4111a0 = {
|
||
exportedAt: new Date().toISOString(),
|
||
meta: {
|
||
ua: navigator.userAgent,
|
||
url: location.href,
|
||
title: document.title,
|
||
cfg: _0x35cc89,
|
||
panelLogs: _0x11317a.logs
|
||
},
|
||
entries: _0x4337be(_0x291cbe.entries)
|
||
};
|
||
let _0x2f53ff = JSON.stringify(_0x4111a0);
|
||
try {
|
||
JSON.parse(_0x2f53ff);
|
||
} catch (_0x4b48d4) {
|
||
_0x2f53ff = JSON.stringify({
|
||
exportedAt: _0x4111a0.exportedAt,
|
||
meta: _0x4111a0.meta,
|
||
entries: []
|
||
});
|
||
_0x4bb241("导出自检失败, 已降级导出面板日志: " + (_0x4b48d4 && _0x4b48d4.message || _0x4b48d4), "block");
|
||
}
|
||
const _0x16328a = new Blob([_0x2f53ff], {
|
||
type: "application/json"
|
||
});
|
||
const _0x1c30de = document.createElement("a");
|
||
_0x1c30de.href = URL.createObjectURL(_0x16328a);
|
||
_0x1c30de.download = "dksq-log-" + new Date().toISOString().replace(/[:.]/g, "-") + ".json";
|
||
document.body.appendChild(_0x1c30de);
|
||
_0x1c30de.click();
|
||
setTimeout(() => {
|
||
URL.revokeObjectURL(_0x1c30de.href);
|
||
_0x1c30de.remove();
|
||
}, 500);
|
||
_0x4bb241("已导出 " + _0x291cbe.entries.length + " 条浏览器日志到下载目录", "ok");
|
||
}
|
||
function _0x1b1644() {
|
||
_0x291cbe.entries.length = 0;
|
||
_0x4bb241("浏览器日志已清空(面板日志保留)", "warn");
|
||
_0x53cc24();
|
||
}
|
||
let _0x327141;
|
||
let _0x1a4304;
|
||
let _0x2cfa89;
|
||
let _0x6f2740;
|
||
function _0x6b2862(_0x35af9f) {
|
||
{
|
||
return String(_0x35af9f == null ? "" : _0x35af9f).replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<");
|
||
}
|
||
}
|
||
const _0x9e6d16 = _0x1986b4 => String(Math.round(Number(_0x1986b4 || 0) * 100) / 100);
|
||
function _0x3b2b79(_0x31676f, _0x26f2f3, _0x458504, _0x4db654, _0x40a635, _0x4ee018, _0x17931a, _0x3b197a, _0x5e4665, _0x2285a7) {
|
||
return "<span class=\"dk-rowno\">行" + _0x31676f + "</span> 数量 <input class=\"dk-qty\" type=\"number\" step=\"0.01\" min=\"0\" value=\"" + _0x26f2f3 + "\" style=\"width:56px\"> 单价 <input class=\"dk-dj\" type=\"number\" step=\"0.01\" min=\"0\" value=\"" + _0x458504 + "\" style=\"width:56px\"> 金额 <input class=\"dk-je\" type=\"number\" step=\"0.01\" min=\"0\" value=\"" + _0x4db654 + "\" style=\"width:64px\"> 单位 <input class=\"dk-dw\" type=\"text\" list=\"dk-dw-list\" value=\"" + _0x6b2862(_0x40a635) + "\" placeholder=\"批\" style=\"width:48px\"> 大类 <input class=\"dk-dl\" type=\"text\" value=\"" + _0x6b2862(_0x4ee018) + "\" placeholder=\"大类\" style=\"width:64px\"> 类目 <input class=\"dk-cl\" type=\"text\" value=\"" + _0x6b2862(_0x17931a) + "\" placeholder=\"类目\" style=\"width:88px\"> 品名 <input class=\"dk-pm\" type=\"text\" value=\"" + _0x6b2862(_0x3b197a) + "\" placeholder=\"品名(输入即搜索)\" style=\"width:64px\"><input type=\"hidden\" class=\"dk-hwdm\" value=\"" + _0x6b2862(_0x2285a7) + "\"> 规格 <input class=\"dk-gg\" type=\"text\" value=\"" + _0x6b2862(_0x5e4665) + "\" placeholder=\"规格\" style=\"width:70px\"> <button class=\"dk-del\" type=\"button\">删除类目</button>";
|
||
}
|
||
function _0x5df6b9() {
|
||
const _0x4fb457 = document.querySelector("#dk-dw-list");
|
||
if (!_0x4fb457) {
|
||
return;
|
||
}
|
||
const _0x153ee5 = _0x5efe4d.slice();
|
||
if (_0x11317a.unitMap) {
|
||
Object.keys(_0x11317a.unitMap).forEach(_0x227819 => {
|
||
if (_0x153ee5.indexOf(_0x227819) === -1) {
|
||
_0x153ee5.push(_0x227819);
|
||
}
|
||
});
|
||
}
|
||
_0x4fb457.innerHTML = _0x153ee5.map(_0x57d1ba => "<option value=\"" + _0x6b2862(_0x57d1ba) + "\"></option>").join("");
|
||
}
|
||
function _0x5bf22e() {
|
||
{
|
||
if (!_0x327141) {
|
||
return;
|
||
}
|
||
const _0x3ea386 = _0x327141.querySelector("#dk-je-wrap");
|
||
if (!_0x3ea386) {
|
||
return;
|
||
}
|
||
_0x3ea386.querySelectorAll(".dk-ticket").forEach(_0x446681 => {
|
||
{
|
||
const _0x140ce1 = Array.from(_0x446681.querySelectorAll("input.dk-je")).reduce((_0x1b2872, _0x39591b) => _0x1b2872 + (Number(_0x39591b.value) || 0), 0);
|
||
_0x446681.querySelector(".dk-tsum").textContent = _0x9e6d16(_0x140ce1);
|
||
}
|
||
});
|
||
}
|
||
}
|
||
function _0x199bfd(_0x4e14d5, _0x4c4800) {
|
||
{
|
||
const _0x53e264 = _0x4e14d5.querySelector("input.dk-qty");
|
||
const _0x5cbd69 = _0x4e14d5.querySelector("input.dk-dj");
|
||
const _0x14c62e = _0x4e14d5.querySelector("input.dk-je");
|
||
const _0x47a793 = Number(_0x53e264.value) || 0;
|
||
const _0x107885 = Number(_0x5cbd69.value) || 0;
|
||
const _0x4f81dd = Number(_0x14c62e.value) || 0;
|
||
if (_0x4c4800 === "qty") {
|
||
{
|
||
if (_0x47a793 > 0) {
|
||
if (_0x107885 > 0) {
|
||
_0x14c62e.value = _0x9e6d16(_0x47a793 * _0x107885);
|
||
} else {
|
||
if (_0x4f81dd > 0) {
|
||
_0x5cbd69.value = _0x9e6d16(_0x4f81dd / _0x47a793);
|
||
}
|
||
}
|
||
} else {
|
||
_0x107885 > 0 && _0x4f81dd > 0 && (_0x53e264.value = _0x9e6d16(_0x4f81dd / _0x107885));
|
||
}
|
||
}
|
||
} else {
|
||
if (_0x4c4800 === "dj") {
|
||
if (_0x107885 > 0) {
|
||
if (_0x47a793 > 0) {
|
||
_0x14c62e.value = _0x9e6d16(_0x47a793 * _0x107885);
|
||
} else {
|
||
if (_0x4f81dd > 0) {
|
||
_0x53e264.value = _0x9e6d16(_0x4f81dd / _0x107885);
|
||
}
|
||
}
|
||
} else {
|
||
if (_0x47a793 > 0 && _0x4f81dd > 0) {
|
||
{
|
||
_0x5cbd69.value = _0x9e6d16(_0x4f81dd / _0x47a793);
|
||
}
|
||
}
|
||
}
|
||
} else {
|
||
if (_0x4c4800 === "je") {
|
||
if (_0x4f81dd > 0) {
|
||
if (_0x107885 > 0) {
|
||
_0x53e264.value = _0x9e6d16(_0x4f81dd / _0x107885);
|
||
} else {
|
||
if (_0x47a793 > 0) {
|
||
_0x5cbd69.value = _0x9e6d16(_0x4f81dd / _0x47a793);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
function _0x401189(_0x24b7c4) {
|
||
{
|
||
const _0x2a9d38 = _0x24b7c4.target;
|
||
if (!_0x2a9d38 || !_0x2a9d38.classList || !_0x327141) {
|
||
return;
|
||
}
|
||
const _0xea1b11 = _0x2a9d38.classList.contains("dk-qty") ? "qty" : _0x2a9d38.classList.contains("dk-dj") ? "dj" : _0x2a9d38.classList.contains("dk-je") ? "je" : null;
|
||
if (!_0xea1b11) {
|
||
return;
|
||
}
|
||
if (!_0x2a9d38.closest || !_0x2a9d38.closest("#dkfx")) {
|
||
return;
|
||
}
|
||
const _0x33695e = _0x2a9d38.closest(".dk-item");
|
||
if (!_0x33695e) {
|
||
return;
|
||
}
|
||
_0x199bfd(_0x33695e, _0xea1b11);
|
||
_0x5bf22e();
|
||
}
|
||
}
|
||
function _0x899947(_0x266abf) {
|
||
{
|
||
const _0x2b2cc3 = _0x266abf.target;
|
||
if (!_0x2b2cc3 || !_0x2b2cc3.classList || !_0x327141) {
|
||
return;
|
||
}
|
||
if (!_0x2b2cc3.classList.contains("dk-del")) {
|
||
return;
|
||
}
|
||
if (!_0x2b2cc3.closest || !_0x2b2cc3.closest("#dkfx")) {
|
||
return;
|
||
}
|
||
const _0xf26b89 = _0x2b2cc3.closest(".dk-item");
|
||
if (!_0xf26b89) {
|
||
return;
|
||
}
|
||
const _0x5ca7a4 = _0xf26b89.parentElement;
|
||
_0xf26b89.remove();
|
||
Array.from(_0x5ca7a4.querySelectorAll(".dk-item")).forEach((_0x3379da, _0x11942a) => {
|
||
{
|
||
const _0x2f87b5 = _0x3379da.querySelector(".dk-rowno");
|
||
if (_0x2f87b5) {
|
||
_0x2f87b5.textContent = "行" + (_0x11942a + 1);
|
||
}
|
||
}
|
||
});
|
||
if (!_0x5ca7a4.querySelector(".dk-item")) {
|
||
const _0x5d3143 = _0x1e32f9("div", {
|
||
class: "dk-item"
|
||
});
|
||
_0x5d3143.innerHTML = _0x3b2b79(1, "", "", "", "", "", "", "", "", "");
|
||
_0x5ca7a4.appendChild(_0x5d3143);
|
||
}
|
||
_0x5bf22e();
|
||
}
|
||
}
|
||
function _0x373c7f(_0x4f6422, _0x1a3592) {
|
||
if (!_0x327141) {
|
||
return;
|
||
}
|
||
const _0x57c4c4 = _0x327141.querySelector("#dk-je-wrap");
|
||
if (!_0x57c4c4) {
|
||
return;
|
||
}
|
||
const _0x180fc2 = Math.max(1, Math.min(99, Number(_0x4f6422) || 1));
|
||
const _0x1500fd = [];
|
||
_0x1a3592 && _0x57c4c4.querySelectorAll(".dk-ticket").forEach(_0x586bf9 => {
|
||
{
|
||
const _0x36c33d = {
|
||
gfmc: (_0x586bf9.querySelector("input.dk-gfmc") || {}).value || "",
|
||
nsrsbh: (_0x586bf9.querySelector("input.dk-gfnsrsbh") || {}).value || "",
|
||
bz: (_0x586bf9.querySelector("input.dk-bz") || {}).value || "",
|
||
items: []
|
||
};
|
||
_0x586bf9.querySelectorAll(".dk-item").forEach(_0x433f86 => {
|
||
_0x36c33d.items.push({
|
||
qty: _0x433f86.querySelector("input.dk-qty").value,
|
||
dj: _0x433f86.querySelector("input.dk-dj").value,
|
||
je: _0x433f86.querySelector("input.dk-je").value,
|
||
dw: _0x433f86.querySelector("input.dk-dw").value,
|
||
dl: _0x433f86.querySelector("input.dk-dl").value,
|
||
cl: _0x433f86.querySelector("input.dk-cl").value,
|
||
pm: _0x433f86.querySelector("input.dk-pm").value,
|
||
gg: _0x433f86.querySelector("input.dk-gg").value,
|
||
dm: (_0x433f86.querySelector("input.dk-hwdm") || {}).value || ""
|
||
});
|
||
});
|
||
_0x1500fd.push(_0x36c33d);
|
||
}
|
||
});
|
||
const _0x2c70b5 = _0x11317a.lastSavePayload ? _0x4d2c42(_0x11317a.lastSavePayload) : [];
|
||
const _0x2f9f1c = _0x11317a.lastSavePayload && _0x11317a.lastSavePayload.FpdkGmfxxVO ? _0x11317a.lastSavePayload.FpdkGmfxxVO : null;
|
||
const _0x1fb53a = _0x2f9f1c ? String(_0x2f9f1c.Ghfnsrmc || "") : "";
|
||
const _0x194b57 = _0x2f9f1c ? String(_0x2f9f1c.Ghfnsrsbh || "") : "";
|
||
const _0x599daf = _0x11317a.lastSavePayload ? String(_0x11317a.lastSavePayload.Bz || "") : "";
|
||
let _0x2929c7 = "";
|
||
for (let _0x5493ba = 1; _0x5493ba <= _0x180fc2; _0x5493ba++) {
|
||
const _0xa15bfe = _0x1a3592 && _0x1500fd[_0x5493ba - 1] ? _0x1500fd[_0x5493ba - 1] : null;
|
||
const _0x129711 = _0xa15bfe && _0xa15bfe.items.length ? _0xa15bfe.items : [];
|
||
const _0x1b1636 = Math.max(_0x129711.length, _0x2c70b5.length, 1);
|
||
_0x2929c7 += "<div class=\"dk-ticket\">";
|
||
_0x2929c7 += "<div class=\"dk-tk-head\">第" + _0x5493ba + "张 抬头 <input class=\"dk-gfmc\" type=\"text\" value=\"" + _0x6b2862(_0xa15bfe ? _0xa15bfe.gfmc : _0x1fb53a) + "\" placeholder=\"购方公司名称\" style=\"width:110px\"> 税号 <input class=\"dk-gfnsrsbh\" type=\"text\" value=\"" + _0x6b2862(_0xa15bfe ? _0xa15bfe.nsrsbh : _0x194b57) + "\" placeholder=\"购方税号\" style=\"width:100px\"> 备注 <input class=\"dk-bz\" type=\"text\" value=\"" + _0x6b2862(_0xa15bfe ? _0xa15bfe.bz : _0x599daf) + "\" placeholder=\"发票备注\" style=\"width:90px\"></div>";
|
||
_0x2929c7 += "<div class=\"dk-items\">";
|
||
for (let _0x145f3c = 0; _0x145f3c < _0x1b1636; _0x145f3c++) {
|
||
{
|
||
const _0x2d67c1 = _0x129711[_0x145f3c] || null;
|
||
const _0x5ad735 = _0x2c70b5[_0x145f3c] || null;
|
||
const _0x20ddbd = _0x2d67c1 && (_0x2d67c1.qty !== "" || _0x2d67c1.dj !== "" || _0x2d67c1.je !== "" || _0x2d67c1.dw !== "" || _0x2d67c1.dl !== "" || _0x2d67c1.cl !== "" || _0x2d67c1.pm !== "" || _0x2d67c1.gg !== "" || _0x2d67c1.dm !== "");
|
||
_0x2929c7 += "<div class=\"dk-item\">" + _0x3b2b79(_0x145f3c + 1, _0x20ddbd ? _0x2d67c1.qty : _0x5ad735 ? String(_0x5ad735.Shuliang || "") : "", _0x20ddbd ? _0x2d67c1.dj : _0x5ad735 ? String(_0x5ad735.Dj || "") : "", _0x20ddbd ? _0x2d67c1.je : _0x5ad735 ? String(_0x5ad735.Je || "") : "", _0x20ddbd ? _0x2d67c1.dw : _0x5ad735 ? String(_0x5ad735.Dwslmc || "") : "", _0x20ddbd ? _0x2d67c1.dl : _0x5ad735 ? String(_0x5ad735.HwlwJc || "") : "", _0x20ddbd ? _0x2d67c1.cl : _0x5ad735 ? String(_0x5ad735.Hwlwlxmc || "").split("*").filter(Boolean)[1] || String(_0x5ad735.Hwlwlxmc || "").split("*").filter(Boolean)[0] || "" : "", _0x20ddbd ? _0x2d67c1.pm : _0x5ad735 ? String(_0x5ad735.Hwlwlxmcss || "") : "", _0x20ddbd ? _0x2d67c1.gg : _0x5ad735 ? String(_0x5ad735.Ggxh || "") : "", _0x20ddbd ? _0x2d67c1.dm : _0x5ad735 ? String(_0x5ad735.HwlwlxDm || "") : "") + "</div>";
|
||
}
|
||
}
|
||
_0x2929c7 += "</div>";
|
||
_0x2929c7 += "<button class=\"dk-add-hw\" type=\"button\">+添加类目品类</button> 合计 <span class=\"dk-tsum\">0</span> 元";
|
||
_0x2929c7 += "</div>";
|
||
}
|
||
_0x57c4c4.innerHTML = _0x2929c7;
|
||
_0x57c4c4.querySelectorAll(".dk-add-hw").forEach(_0x1cde6b => {
|
||
_0x1cde6b.onclick = () => {
|
||
const _0x3c4db9 = _0x1cde6b.parentElement.querySelector(".dk-items");
|
||
const _0x2bff21 = _0x1e32f9("div", {
|
||
class: "dk-item"
|
||
});
|
||
_0x2bff21.innerHTML = _0x3b2b79(_0x3c4db9.children.length + 1, "", "", "", "", "", "", "", "", "");
|
||
_0x3c4db9.appendChild(_0x2bff21);
|
||
_0x5bf22e();
|
||
};
|
||
});
|
||
_0x5bf22e();
|
||
}
|
||
function _0x43b54d() {
|
||
if (!_0x1a4304) {
|
||
return;
|
||
}
|
||
_0x1a4304.innerHTML = _0x11317a.logs.map(_0x24e9e3 => "<div class=\"dk-" + _0x24e9e3.kind + "\">[" + _0x24e9e3.t + "] " + _0x24e9e3.msg + "</div>").join("");
|
||
}
|
||
function _0x1769bf() {
|
||
if (!_0x2cfa89) {
|
||
return;
|
||
}
|
||
_0x2cfa89.innerHTML = _0x11317a.lastSavePayload ? "载荷: 已捕获 (合计=" + _0x4d2c42(_0x11317a.lastSavePayload).reduce((_0x3af576, _0x53b4b8) => _0x3af576 + (Number(_0x53b4b8.Je) || 0), 0) + ", " + _0x4d2c42(_0x11317a.lastSavePayload).length + "行) | sqduuid=" + (_0x11317a.lastSqduuid || "-") : "载荷: 未捕获(先在填单页点【下一步】)";
|
||
}
|
||
function _0x375c5f() {
|
||
if (!_0x327141) {
|
||
return;
|
||
}
|
||
const _0xd53b51 = _0x327141.querySelector("#dk-auth-row");
|
||
if (!_0xd53b51) {
|
||
return;
|
||
}
|
||
const _0x1ce8e1 = _0x4f04cf();
|
||
if (!_0x1ce8e1) {
|
||
_0xd53b51.innerHTML = "卡密 <input id=\"dk-key\" placeholder=\"DKSQ-XXXX-XXXX-XXXX\" style=\"width:170px\"> <button id=\"dk-bind\">绑定卡密</button>";
|
||
_0xd53b51.querySelector("#dk-bind").onclick = async () => {
|
||
{
|
||
const _0x4deedc = String(_0xd53b51.querySelector("#dk-key").value || "").trim();
|
||
if (!_0x4deedc) {
|
||
_0x4bb241("请输入卡密再绑定", "warn");
|
||
return;
|
||
}
|
||
_0x58fd2e(_0x4deedc);
|
||
const _0x84f931 = await _0x1f49aa();
|
||
if (_0x84f931.ok) {
|
||
{
|
||
_0x4bb241("卡密激活成功,有效期至 " + _0x5dac71(_0x84f931.expiresAt) + "(剩 " + _0x84f931.daysLeft + " 天)", "ok");
|
||
}
|
||
} else {
|
||
_0x20faa4();
|
||
_0x4bb241("卡密绑定失败: " + _0x84f931.msg, "block");
|
||
}
|
||
_0x375c5f();
|
||
}
|
||
};
|
||
return;
|
||
}
|
||
_0xd53b51.innerHTML = "<span id=\"dk-auth-info\">卡密: 验证中...</span> <button id=\"dk-rekey\">更换卡密</button>";
|
||
_0xd53b51.querySelector("#dk-rekey").onclick = () => {
|
||
{
|
||
_0x20faa4();
|
||
_0x375c5f();
|
||
}
|
||
};
|
||
_0x1f49aa().then(_0x184f9f => {
|
||
{
|
||
const _0x1582a6 = _0xd53b51.querySelector("#dk-auth-info");
|
||
if (!_0x1582a6) {
|
||
return;
|
||
}
|
||
if (_0x184f9f.ok) {
|
||
_0x1582a6.textContent = "卡密: 有效期至 " + _0x5dac71(_0x184f9f.expiresAt) + "(剩 " + _0x184f9f.daysLeft + " 天)";
|
||
_0x1582a6.style.color = "#6fd18c";
|
||
} else {
|
||
{
|
||
_0x1582a6.textContent = "卡密: " + _0x184f9f.msg;
|
||
_0x1582a6.style.color = "#ff7a7a";
|
||
}
|
||
}
|
||
}
|
||
});
|
||
}
|
||
function _0x53cc24() {
|
||
if (_0x6f2740) {
|
||
_0x6f2740.textContent = "已记录 " + _0x291cbe.entries.length + " 条";
|
||
}
|
||
}
|
||
let _0x20ea24 = null;
|
||
let _0x7ee51f = null;
|
||
async function _0xeb37c6(_0x84458e) {
|
||
try {
|
||
{
|
||
const _0x2d5aed = await _0xca6717("/sqsp/api/dksq/zzsfpdksq/v1/getSsflpzxxByHwlwmc", {
|
||
Hwlwmc: _0x84458e,
|
||
BqlxDm: "A0",
|
||
FpdklxDm: "D9",
|
||
Sfzcncp: "N"
|
||
});
|
||
const _0x42aee6 = JSON.parse(_0x34af71(_0x2d5aed).szcQueryResultFilter || "[]");
|
||
return Array.isArray(_0x42aee6) ? _0x42aee6 : [];
|
||
}
|
||
} catch (_0x503f47) {
|
||
{
|
||
return [];
|
||
}
|
||
}
|
||
}
|
||
function _0x16fcb7() {
|
||
_0x7ee51f && (_0x7ee51f.remove(), _0x7ee51f = null);
|
||
}
|
||
function _0x531941(_0x29f8fa, _0x5e17f2) {
|
||
_0x16fcb7();
|
||
if (!_0x5e17f2.length) {
|
||
return;
|
||
}
|
||
const _0x3326c4 = _0x29f8fa.getBoundingClientRect();
|
||
_0x7ee51f = _0x1e32f9("div", {
|
||
style: "position:fixed;left:" + _0x3326c4.left + "px;top:" + (_0x3326c4.bottom + 2) + "px;z-index:2147483647;background:#10141c;border:1px solid #2b3a55;border-radius:6px;max-height:220px;overflow:auto;min-width:" + Math.max(_0x3326c4.width, 280) + "px;box-shadow:0 8px 30px rgba(0,0,0,.55)"
|
||
});
|
||
_0x5e17f2.forEach(_0x5999c9 => {
|
||
const _0xd5b04f = _0x1e32f9("div", {
|
||
style: "padding:4px 8px;cursor:pointer;border-bottom:1px solid #1c2637;color:#d8e2f0;font:11px/1.4 Consolas,monospace"
|
||
}, "<b style=\"color:#7fb4ff\">" + _0x6b2862(_0x5999c9.gnjc || "") + "</b> " + _0x6b2862(_0x5999c9.hwlwmc || "") + " <span style=\"color:#6b7a90\">" + _0x6b2862(_0x5999c9.ywbt || "") + "</span>");
|
||
_0xd5b04f.onmouseenter = () => {
|
||
_0xd5b04f.style.background = "#1e2c40";
|
||
};
|
||
_0xd5b04f.onmouseleave = () => {
|
||
_0xd5b04f.style.background = "";
|
||
};
|
||
_0xd5b04f.onmousedown = _0x2866c9 => {
|
||
_0x2866c9.preventDefault();
|
||
const _0x141012 = _0x29f8fa.closest(".dk-item");
|
||
if (_0x141012) {
|
||
{
|
||
const _0x1ed2b9 = String(_0x5999c9.ywbt || "").split("*").filter(Boolean);
|
||
const _0x504c3b = _0x141012.querySelector("input.dk-dl");
|
||
const _0x35ef38 = _0x141012.querySelector("input.dk-cl");
|
||
const _0x21b00b = _0x141012.querySelector("input.dk-pm");
|
||
const _0x34ca2b = _0x141012.querySelector("input.dk-hwdm");
|
||
if (_0x504c3b) {
|
||
_0x504c3b.value = _0x5999c9.gnjc || _0x1ed2b9[0] || "";
|
||
}
|
||
if (_0x35ef38) {
|
||
_0x35ef38.value = _0x1ed2b9.length >= 2 ? _0x1ed2b9[1] : _0x5999c9.hwlwmc || "";
|
||
}
|
||
if (_0x21b00b) {
|
||
_0x21b00b.value = _0x5999c9.hwlwmc || "";
|
||
}
|
||
if (_0x34ca2b) {
|
||
_0x34ca2b.value = _0x5999c9.hwlwDm || "";
|
||
}
|
||
_0x4bb241("品名已选: " + (_0x5999c9.ywbt || "") + (_0x5999c9.hwlwmc ? " / " + _0x5999c9.hwlwmc : "") + " (编码 " + (_0x5999c9.hwlwDm || "?") + ")", "ok");
|
||
}
|
||
}
|
||
_0x16fcb7();
|
||
};
|
||
_0x7ee51f.appendChild(_0xd5b04f);
|
||
});
|
||
document.body.appendChild(_0x7ee51f);
|
||
}
|
||
function _0x1e32f9(_0x467c43, _0x424714, _0x4f73be) {
|
||
const _0x17714c = document.createElement(_0x467c43);
|
||
if (_0x424714) {
|
||
for (const _0x5275f4 in _0x424714) _0x17714c.setAttribute(_0x5275f4, _0x424714[_0x5275f4]);
|
||
}
|
||
if (_0x4f73be !== undefined) {
|
||
_0x17714c.innerHTML = _0x4f73be;
|
||
}
|
||
return _0x17714c;
|
||
}
|
||
function _0x55a64f() {
|
||
if (_0x327141) {
|
||
return;
|
||
}
|
||
const _0x9796b = ["#dkfx{position:fixed;right:12px;bottom:12px;z-index:2147483647;width:470px;max-height:68vh;display:flex;flex-direction:column;background:#10141c;color:#d8e2f0;font:11px/1.4 Consolas,monospace;border:1px solid #2b3a55;border-radius:8px;box-shadow:0 8px 30px rgba(0,0,0,.55)}", "#dkfx .dk-hd{padding:6px 8px;background:#0b0f16;border-bottom:1px solid #2b3a55;cursor:move;font-weight:700}", "#dkfx .dk-bd{padding:6px 8px;overflow:auto;max-height:66vh}", "#dkfx .dk-ok{color:#6fd18c}", "#dkfx .dk-block{color:#ff7a7a}", "#dkfx .dk-net{color:#7fb4ff}", "#dkfx .dk-warn{color:#ffd27f}", "#dkfx .dk-info{color:#a9b8cc}", "#dkfx input,#dkfx button{margin:1px 0;padding:2px 4px;background:#16202e;color:#d8e2f0;border:1px solid #2b3a55;border-radius:4px}", "#dkfx button{cursor:pointer}", "#dkfx button:hover{background:#1e2c40}", "#dkfx .dk-row{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0}", "#dkfx .dk-ticket{border:1px dashed #2b3a55;padding:3px;margin:3px 0;border-radius:4px}", "#dkfx .dk-item{display:flex;gap:3px;flex-wrap:wrap;align-items:center;margin:1px 0}", "#dkfx .dk-add-hw{font-size:11px;padding:2px 8px}", "#dkfx .dk-del{padding:0 6px;margin-left:2px;font-size:12px}", "#dkfx .dk-rowno{color:#7fb4ff;margin-right:2px}", "#dkfx .dk-tsum{color:#6fd18c;font-weight:700}"].join("\n");
|
||
document.documentElement.appendChild(_0x1e32f9("style", null, _0x9796b));
|
||
_0x327141 = _0x1e32f9("div", {
|
||
id: "dkfx"
|
||
});
|
||
_0x327141.appendChild(_0x1e32f9("div", {
|
||
class: "dk-hd"
|
||
}, "全球通 v3.1.30 " + (_0x108366 ? "(抓包版)" : "") + " <span id=\"dkfx-min\" style=\"float:right;cursor:pointer\">-</span>"));
|
||
const _0x5a3eaf = _0x1e32f9("div", {
|
||
class: "dk-bd"
|
||
});
|
||
_0x5a3eaf.appendChild(_0x1e32f9("div", {
|
||
class: "dk-row",
|
||
id: "dk-auth-row"
|
||
}));
|
||
_0x5a3eaf.appendChild(_0x1e32f9("div", {
|
||
class: "dk-row"
|
||
}, "<button id=\"dk-a6\" style=\"background:#1f6f43;font-weight:700\">一键开票</button> <label style=\"margin-left:6px\">开票张数 <input id=\"dk-cnt\" type=\"number\" min=\"1\" max=\"99\" value=\"1\" style=\"width:52px\"></label> <button id=\"dk-new\">新开一单</button> <button id=\"dk-stop\">停止</button>"));
|
||
_0x5a3eaf.appendChild(_0x1e32f9("div", {
|
||
class: "dk-row"
|
||
}, "<button id=\"dk-export\">导出日志</button> <button id=\"dk-clear\">清空日志</button> <button id=\"dk-face\" title=\"开启后: 点页面提交仅触发刷脸, 真实提交被拦截不出网、不占审核\">刷脸模式: 关</button> <button id=\"dk-auto\" title=\"开启后: 确认页直接点【提交】, 插件自动完成绕过出票\">自动模式: 开</button>" + (_0x108366 ? " <button id=\"dk-pass\" title=\"研究用: 放行下一次页面原生提交(仅一次), 抓原生判决\">放行一次原生提交</button> <button id=\"dk-probe\" title=\"研究用: 变体x放大预检, 只看不提交, 扫哪个组合能过\">探测组合</button> <button id=\"dk-pcommit\" title=\"研究用: 选择任一真实金额预检 PASS 的草稿执行真实 commit, 可选 m9/m15 免税组合\">PASS直开</button> <button id=\"dk-szc\" title=\"研究用: 风控测试端点探测(testSzc*)\">风控测试端点</button> <button id=\"dk-token\" title=\"研究用: 小额预检拿令牌, 放大后回放令牌试消 -101; 云南若出票可红冲\">预检令牌回放</button> <button id=\"dk-xcheck\" title=\"研究用: 当前门户读取并预检另一省 sqduuid, 只读+预检不 commit\">跨门户读预检</button> <button id=\"dk-xcommit\" title=\"研究用: 当前门户真实提交同一 sqduuid, 验证是否承认另一省预检\">跨门户提交</button> <button id=\"dk-race\" title=\"研究用: 放大保存与 commit 多延迟并发, 验证 TOCTOU 时序窗口\">时序竞争</button>" : "")));
|
||
_0x5a3eaf.appendChild(_0x1e32f9("div", {
|
||
class: "dk-row",
|
||
id: "dk-je-wrap"
|
||
}));
|
||
_0x5a3eaf.appendChild(_0x1e32f9("datalist", {
|
||
id: "dk-dw-list"
|
||
}, _0x5efe4d.map(_0x3ea879 => "<option value=\"" + _0x6b2862(_0x3ea879) + "\"></option>").join("")));
|
||
document.addEventListener("input", _0x401189, true);
|
||
document.addEventListener("click", _0x899947, true);
|
||
document.addEventListener("input", _0x8978 => {
|
||
{
|
||
const _0x11091a = _0x8978.target;
|
||
if (!_0x11091a || !_0x11091a.classList || !(_0x11091a.classList.contains("dk-pm") || _0x11091a.classList.contains("dk-dl") || _0x11091a.classList.contains("dk-cl"))) {
|
||
return;
|
||
}
|
||
if (!_0x11091a.closest || !_0x11091a.closest("#dkfx")) {
|
||
return;
|
||
}
|
||
const _0x361fec = String(_0x11091a.value || "").trim();
|
||
clearTimeout(_0x20ea24);
|
||
if (_0x361fec.length < 1) {
|
||
{
|
||
_0x16fcb7();
|
||
return;
|
||
}
|
||
}
|
||
_0x20ea24 = setTimeout(async () => {
|
||
_0x4bb241("品名搜索: " + _0x361fec, "net");
|
||
const _0x142d88 = await _0xeb37c6(_0x361fec);
|
||
_0x4bb241("品名搜索命中 " + _0x142d88.length + " 条" + (_0x142d88.length ? "" : "(接口无返回或为空)"), _0x142d88.length ? "ok" : "warn");
|
||
if (String(_0x11091a.value || "").trim() !== _0x361fec) {
|
||
return;
|
||
}
|
||
_0x531941(_0x11091a, _0x142d88);
|
||
}, 400);
|
||
}
|
||
}, true);
|
||
document.addEventListener("click", _0x5853ac => {
|
||
{
|
||
if (_0x7ee51f && !(_0x5853ac.target.classList && (_0x5853ac.target.classList.contains("dk-pm") || _0x5853ac.target.classList.contains("dk-dl") || _0x5853ac.target.classList.contains("dk-cl"))) && !(_0x7ee51f.contains && _0x7ee51f.contains(_0x5853ac.target))) {
|
||
_0x16fcb7();
|
||
}
|
||
}
|
||
}, true);
|
||
_0x5a3eaf.appendChild(_0x1e32f9("div", {
|
||
class: "dk-info",
|
||
style: "margin:2px 0"
|
||
}, "用法: 填单页填好→点【下一步】→面板填张数与字段→点【一键开票】。品名三框(大类/类目/品名): 大类类目自动带入页面截获值, 只填品名即可换品名(如人参)。确认页点【提交】自动出票需先在面板开启【自动模式】。"));
|
||
_0x6f2740 = _0x1e32f9("div", {
|
||
class: "dk-info",
|
||
style: "margin:2px 0"
|
||
});
|
||
_0x5a3eaf.appendChild(_0x6f2740);
|
||
_0x2cfa89 = _0x1e32f9("div", {
|
||
class: "dk-info",
|
||
style: "margin:4px 0"
|
||
});
|
||
_0x5a3eaf.appendChild(_0x2cfa89);
|
||
_0x1a4304 = _0x1e32f9("div", {
|
||
style: "max-height:180px;overflow:auto;border-top:1px solid #2b3a55;margin-top:6px;padding-top:4px"
|
||
});
|
||
_0x5a3eaf.appendChild(_0x1a4304);
|
||
_0x327141.appendChild(_0x5a3eaf);
|
||
document.body.appendChild(_0x327141);
|
||
_0x1769bf();
|
||
_0x43b54d();
|
||
_0x53cc24();
|
||
!_0x3e7c92 && !_0x108366 && (_0x4bb241("当前地区(" + (_0x51ddf6 || location.hostname) + ")暂不支持,目前仅支持云南/辽宁/陕西/新疆", "block"), _0x2cfa89.innerHTML = "<span style=\"color:#ff7a7a\">当前地区暂不支持(目前仅支持云南/辽宁/陕西/新疆)</span>");
|
||
_0x327141.querySelector("#dk-new").onclick = () => {
|
||
_0x4bb241("正在跳转新开一单(清掉旧草稿号)...", "warn");
|
||
location.href = location.origin + "/sqsp/view/dksq/invoice-information-collection/information-fillin?bqlx=A0";
|
||
};
|
||
const _0x49d8b2 = _0x327141.querySelector("#dk-cnt");
|
||
_0x49d8b2 && (_0x49d8b2.value = String(Number(_0x35cc89.ticketCount) || 1), _0x49d8b2.onchange = () => {
|
||
_0x35cc89.ticketCount = Math.max(1, Math.min(99, Number(_0x49d8b2.value) || 1));
|
||
_0x49d8b2.value = String(_0x35cc89.ticketCount);
|
||
_0xd5c273();
|
||
_0x373c7f(_0x35cc89.ticketCount, true);
|
||
_0x4bb241("开票张数改为 " + _0x35cc89.ticketCount + " 张, 请填写每张金额", "info");
|
||
});
|
||
_0x373c7f(Number(_0x35cc89.ticketCount) || 1, false);
|
||
_0x327141.querySelector("#dk-a6").onclick = async () => {
|
||
_0x49d8b2 && (_0x35cc89.ticketCount = Math.max(1, Math.min(99, Number(_0x49d8b2.value) || 1)), _0x49d8b2.value = String(_0x35cc89.ticketCount));
|
||
_0xd5c273();
|
||
const _0x3d6bb8 = await _0x1f49aa();
|
||
if (!_0x3d6bb8.ok) {
|
||
{
|
||
_0x4bb241("卡密校验失败: " + _0x3d6bb8.msg, "block");
|
||
return;
|
||
}
|
||
}
|
||
_0x4bb241("卡密校验通过,剩 " + _0x3d6bb8.daysLeft + " 天", "net");
|
||
_0x11317a.running = true;
|
||
await _0x426ade();
|
||
_0x11317a.running = false;
|
||
_0x4bb241("一键开票流程结束,看上方发票号");
|
||
};
|
||
_0x327141.querySelector("#dk-stop").onclick = () => {
|
||
_0x11317a.running = false;
|
||
_0x4bb241("已请求停止", "warn");
|
||
};
|
||
_0x327141.querySelector("#dk-export").onclick = _0x4c2a9c;
|
||
_0x327141.querySelector("#dk-face").onclick = () => {
|
||
if (!_0x3e7c92) {
|
||
_0x4bb241("当前地区暂不支持,目前仅支持云南/辽宁/陕西/新疆", "block");
|
||
return;
|
||
}
|
||
_0x11317a.faceOnly = !_0x11317a.faceOnly;
|
||
const _0x12278c = _0x327141.querySelector("#dk-face");
|
||
_0x12278c.textContent = _0x11317a.faceOnly ? "刷脸模式: 开(页面提交将被拦截)" : "刷脸模式: 关";
|
||
_0x12278c.style.background = _0x11317a.faceOnly ? "#7a2e2e" : "";
|
||
_0x12278c.style.color = _0x11317a.faceOnly ? "#ffb3b3" : "";
|
||
_0x4bb241(_0x11317a.faceOnly ? "刷脸模式已开启: 现在点页面的提交按钮只会完成刷脸, 真实提交不出网、不占审核; 刷完脸关掉开关再点一键开票" : "刷脸模式已关闭: 页面恢复正常提交", "warn");
|
||
};
|
||
const _0x33051e = _0x327141.querySelector("#dk-auto");
|
||
const _0x21612e = () => {
|
||
_0x33051e.textContent = _0x35cc89.autoMode ? "自动模式: 开" : "自动模式: 关";
|
||
_0x33051e.style.background = _0x35cc89.autoMode ? "#1f6f43" : "";
|
||
_0x33051e.style.color = _0x35cc89.autoMode ? "#d8f0e2" : "";
|
||
};
|
||
_0x21612e();
|
||
_0x33051e.onclick = () => {
|
||
_0x35cc89.autoMode = !_0x35cc89.autoMode;
|
||
_0xd5c273();
|
||
_0x21612e();
|
||
_0x4bb241(_0x35cc89.autoMode ? "自动模式已开启: 确认页直接点【提交】即可自动出票" : "自动模式已关闭: 页面提交走原生流程(风险弹窗仍屏蔽)", "warn");
|
||
};
|
||
const _0x35db9e = _0x327141.querySelector("#dk-szc");
|
||
if (_0x35db9e) {
|
||
_0x35db9e.onclick = async () => {
|
||
{
|
||
await _0x3bc7c5();
|
||
}
|
||
};
|
||
}
|
||
const _0x451dc4 = _0x327141.querySelector("#dk-token");
|
||
if (_0x451dc4) {
|
||
_0x451dc4.onclick = async () => {
|
||
await _0x33820d();
|
||
};
|
||
}
|
||
const _0x139386 = _0x327141.querySelector("#dk-xcheck");
|
||
if (_0x139386) {
|
||
_0x139386.onclick = async () => {
|
||
await _0x4da11c();
|
||
};
|
||
}
|
||
const _0x53dd27 = _0x327141.querySelector("#dk-xcommit");
|
||
if (_0x53dd27) {
|
||
_0x53dd27.onclick = async () => {
|
||
await _0x105b71();
|
||
};
|
||
}
|
||
const _0x53e553 = _0x327141.querySelector("#dk-race");
|
||
if (_0x53e553) {
|
||
_0x53e553.onclick = async () => {
|
||
await _0x360530();
|
||
};
|
||
}
|
||
const _0x4d2862 = _0x327141.querySelector("#dk-pcommit");
|
||
if (_0x4d2862) {
|
||
_0x4d2862.onclick = async () => {
|
||
await _0x2d9113();
|
||
};
|
||
}
|
||
const _0x246d62 = _0x327141.querySelector("#dk-probe");
|
||
if (_0x246d62) {
|
||
_0x246d62.onclick = async () => {
|
||
if (_0x11317a.running) {
|
||
_0x4bb241("已有流程运行中", "warn");
|
||
return;
|
||
}
|
||
if (!_0x11317a.lastSavePayload) {
|
||
_0x4bb241("请先在填单页点【下一步】捕获载荷", "warn");
|
||
return;
|
||
}
|
||
_0x11317a.running = true;
|
||
await _0x195b0c(_0x11317a.lastSavePayload);
|
||
_0x11317a.running = false;
|
||
};
|
||
}
|
||
const _0x150ce9 = _0x327141.querySelector("#dk-pass");
|
||
if (_0x150ce9) {
|
||
_0x150ce9.onclick = () => {
|
||
{
|
||
_0x11317a.allowNativeCommit = true;
|
||
_0x4bb241("已放行下一次页面原生提交(研究用, 仅一次): 现在去点页面的【提交】, 原生判决会记入日志", "warn");
|
||
}
|
||
};
|
||
}
|
||
_0x327141.querySelector("#dk-clear").onclick = _0x1b1644;
|
||
_0x327141.querySelector("#dkfx-min").onclick = () => {
|
||
{
|
||
const _0x5833e3 = _0x327141.querySelector(".dk-bd");
|
||
_0x5833e3.style.display = _0x5833e3.style.display === "none" ? "" : "none";
|
||
}
|
||
};
|
||
let _0x1d096c = null;
|
||
_0x327141.querySelector(".dk-hd").addEventListener("mousedown", _0x5955c8 => {
|
||
_0x1d096c = {
|
||
x: _0x5955c8.clientX,
|
||
y: _0x5955c8.clientY,
|
||
l: _0x327141.offsetLeft,
|
||
t: _0x327141.offsetTop
|
||
};
|
||
});
|
||
addEventListener("mousemove", _0x22a164 => {
|
||
{
|
||
if (!_0x1d096c) {
|
||
return;
|
||
}
|
||
_0x327141.style.right = "auto";
|
||
_0x327141.style.bottom = "auto";
|
||
_0x327141.style.left = _0x1d096c.l + _0x22a164.clientX - _0x1d096c.x + "px";
|
||
_0x327141.style.top = _0x1d096c.t + _0x22a164.clientY - _0x1d096c.y + "px";
|
||
}
|
||
});
|
||
addEventListener("mouseup", () => {
|
||
{
|
||
_0x1d096c = null;
|
||
}
|
||
});
|
||
_0x375c5f();
|
||
}
|
||
function _0x2f238f() {
|
||
{
|
||
if (document.body) {
|
||
_0x55a64f();
|
||
} else {
|
||
addEventListener("DOMContentLoaded", _0x55a64f);
|
||
}
|
||
}
|
||
}
|
||
_0x2f238f();
|
||
})(); |