This commit is contained in:
Faker 2022-04-07 15:32:28 +08:00
parent 1c339a4875
commit 2965fb6c8e
2 changed files with 14 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@ -366,14 +366,16 @@ function dotask(task) {
// 宝箱 // 宝箱
function bxdraw() { function bxdraw() {
let body; let functionId, body;
if ($.signhb_source === '5') { if ($.signhb_source === '5') {
functionId = "signhb/bxdraw_jxpp"
body = `ispp=1&sqactive=${$.sqactive}&tk=` body = `ispp=1&sqactive=${$.sqactive}&tk=`
} else { } else {
functionId = "signhb/bxdraw"
body = `ispp=0&sqactive=&tk=` body = `ispp=0&sqactive=&tk=`
} }
return new Promise((resolve) => { return new Promise((resolve) => {
$.get(taskUrl("signhb/bxdraw", body), async (err, resp, data) => { $.get(taskUrl(functionId, body), async (err, resp, data) => {
try { try {
if (err) { if (err) {
console.log(JSON.stringify(err)); console.log(JSON.stringify(err));