Skip to content

Commit 68d282a

Browse files
authored
Update dell1106.js
1 parent cea51b4 commit 68d282a

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

dell1106.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
// quantumultx
2020
[task_local]
2121
#戴尔新品上市
22-
2 0 * * * https://raw.githubusercontent.com/qqsdff/scripts/dell1106.js, tag=戴尔新品上市, img-url=https://raw.githubusercontent.com/yangtingxiao/QuantumultX/master/image/jd.png,enabled=true
22+
2 0 * * * https://raw.githubusercontent.com/qqsdff/script/main/dell1106.js, tag=戴尔新品上市, img-url=https://raw.githubusercontent.com/yangtingxiao/QuantumultX/master/image/jd.png,enabled=true
2323
2424
// Loon
2525
[Script]
26-
cron "2 0 * * *" script-path=https://raw.githubusercontent.com/qqsdff/scripts/dell1106.js,tag=戴尔新品上市
26+
cron "2 0 * * *" script-path=https://raw.githubusercontent.com/qqsdff/script/main/dell1106.js,tag=戴尔新品上市
2727
2828
// Surge
29-
戴尔新品上市 = type=cron,cronexp=2 0 * * *,wake-system=1,timeout=320,script-path=https://raw.githubusercontent.com/qqsdff/scripts/dell1106.js
29+
戴尔新品上市 = type=cron,cronexp=2 0 * * *,wake-system=1,timeout=320,script-path=https://raw.githubusercontent.com/qqsdff/script/main/dell1106.js
3030
3131
// JSBox
3232
请把cookie 填入数组cookiesArr,
@@ -229,7 +229,17 @@ async function showMsg() {
229229
if ($.isNode()) await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName || $.UserName}`, `账号${$.index} ${$.nickName || $.UserName}\n做任务之前京豆总计:${$.beanCount}\n做完任务后京豆总计:${$.jdNum}\n${($.jdNum - $.beanCount) > 0 ? `获得京豆:${$.jdNum - $.beanCount}京豆 🐶(仅供参考)\n` : ''}京豆先到先得\n注:如未获得京豆就是已被分完\n活动地址:https://computerdigital.m.jd.com/#/?activityId=dell1106`)
230230
}
231231
}
232-
232+
function jsonParse(str) {
233+
if (typeof str == "string") {
234+
try {
235+
return JSON.parse(str);
236+
} catch (e) {
237+
console.log(e);
238+
$.msg($.name, '', '不要在BoxJS手动复制粘贴修改cookie')
239+
return [];
240+
}
241+
}
242+
}
233243
//初始化cookie
234244
function initCookie() {
235245
if ($.isJsbox()) {

0 commit comments

Comments
 (0)