MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / signIn

Method signIn

wxapp/guyu.js:162–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160 return axios.request(options)
161 }
162 async signIn() {
163 let options = {
164 method: 'POST',
165 url: `https://mall-mobile-v6.vecrp.com/mobile/activity/sign/sign`,
166
167 headers: {},
168 data: {
169 activityId: 'cdd30467-abb8-4944-8941-2879aa950a86',
170 shopId: '100186753',
171 signDate: $.time(`yyyy-M-dd`),
172 }
173
174 };
175 let {
176 data: result
177 } = await this.request(options);
178 if (result?.success) {
179 //打印签到结果
180 $.log(`🌸账号[${this.index}]` + `签到成功`);
181 } else {
182 $.log(`🌸账号[${this.index}] 签到-失败:${result.msg}❌`)
183 }
184
185
186
187
188 }
189 async getUserPoints() {
190 let options = {
191 method: 'GET',

Callers 1

runMethod · 0.95

Calls 3

requestMethod · 0.95
timeMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected