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

Function preload

activity/jd_watch.js:112–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110]
111
112function preload(){
113 const fs = require('fs');
114 let raw = fs.readFileSync('watch.chlsj');
115 let s = JSON.parse(raw);
116 s.map(vo=>{
117 let doTask = vo.request.header.headers.filter(vo=>vo['name'] === ":path" && vo['value'].indexOf('discDoTask')>0)[0]
118 if(doTask){
119 doBody.push(vo.request.body.text)
120 }else{
121 acceptBody.push(vo.request.body.text)
122 }
123 })
124}
125const notify = $.isNode() ? require('./sendNotify') : '';
126//Node.js用户请在jdCookie.js处填写京东ck;
127const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';

Callers 1

jd_watch.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected