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

Method getSignActivity

wxapp/haitian.js:314–328  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

312 }
313
314 async getSignActivity() {
315 try {
316 const result = await this.request("/sign/activity/code", {
317 params: { activityCode: "" },
318 });
319 if (result?.activity_code) {
320 $.log(`获取活动信息成功,活动ID:${result.activity_code}`);
321 this.activity_code = result.activity_code;
322 } else {
323 $.log(`获取活动信息失败:${JSON.stringify(result)}❌`);
324 }
325 } catch (e) {
326 $.log(`获取活动信息失败:${e.message || e}❌`);
327 }
328 }
329
330 async signIn() {
331 try {

Callers 1

runMethod · 0.95

Calls 2

requestMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected