MCPcopy Create free account
hub / github.com/Semporia/Scripts / jdFactory

Function jdFactory

jd_jdfactory.js:87–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 $.done();
86 })
87async function jdFactory() {
88 try {
89 await jdfactory_getHomeData();
90 await helpFriends();
91 // $.newUser !==1 && $.haveProduct === 2,老用户但未选购商品
92 // $.newUser === 1新用户
93 if ($.newUser === 1) return
94 await jdfactory_collectElectricity();//收集产生的电量
95 await jdfactory_getTaskDetail();
96 await doTask();
97 await algorithm();//投入电力逻辑
98 await showMsg();
99 } catch (e) {
100 $.logErr(e)
101 }
102}
103function showMsg() {
104 return new Promise(resolve => {
105 if (!jdNotify) {

Callers 1

jd_jdfactory.jsFile · 0.85

Calls 8

jdfactory_getHomeDataFunction · 0.85
jdfactory_getTaskDetailFunction · 0.85
algorithmFunction · 0.85
helpFriendsFunction · 0.70
doTaskFunction · 0.70
showMsgFunction · 0.70
logErrMethod · 0.45

Tested by

no test coverage detected