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

Function init

jd_reward.ts:59–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57})()
58
59function init() {
60 return new Promise(async resolve => {
61 let {data} = await axios.get(`https://jdjoy.jd.com/common/gift/getBeanConfigs?reqSource=h5&invokeKey=NRp8OPxZMFXmGkaE&validate=${validate}`, {
62 headers: {
63 'Host': 'jdjoy.jd.com',
64 'content-type': 'application/json',
65 'origin': 'https://h5.m.jd.com',
66 "User-Agent": USER_AGENT,
67 'referer': 'https://jdjoy.jd.com/',
68 'cookie': cookie
69 }
70 })
71 resolve(data);
72 })
73}
74
75function exchange(beanId: number) {
76 console.log('exchange()')

Callers 1

jd_reward.tsFile · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected