MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / doSign

Method doSign

wxapp/nwdjg.js:127–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125 }
126
127 async doSign() {
128 let options = {
129 method: 'GET',
130 url: `https://stdcrm.dtmiller.com/scrm-promotion-service/promotion/sign/today?promotionId=PI69cb44d522cc56000aa80bbe`,
131 headers: {
132 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 MicroMessenger/7.0.20.1781 NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF XWEB/50249',
133 'Content-Type': 'application/json',
134 'xweb_xhr': '1',
135 'authorization': '',
136 'sec-fetch-site': 'cross-site',
137 'sec-fetch-mode': 'cors',
138 'sec-fetch-dest': 'empty',
139 'referer': 'https://servicewechat.com/wxed3cf95a14b58a26/255/page-frame.html',
140 'accept-language': 'zh-CN,zh;q=0.9',
141 authorization: this.token
142 }
143 };
144 let {
145 data: result
146 } = await axios.request(options);
147 if (result?.code == '0') {
148 //打印签到结果
149 $.log(`签到天数:${sign_data['data']['signDays']}`)
150 $.log(`签到成功`);
151 } else {
152 $.log(`🌸账号[${this.index}] 签到-失败:${result.msg}❌`)
153 }
154
155
156
157
158 }
159
160
161

Callers 1

runMethod · 0.95

Calls 2

requestMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected