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

Method detectSignActId

wxapp/ytb2_all.js:192–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190 }
191
192 async detectSignActId() {
193 if (this.signActId) return this.signActId;
194 if (!this.templateUrl) return "";
195 try {
196 const { data } = await axios.get(this.templateUrl, {
197 headers: this.headers(),
198 timeout: 30000,
199 });
200 this.signActId = findSignActId(data);
201 if (this.signActId) this.log(`识别签到活动ID: ${this.signActId}`);
202 } catch (e) {
203 this.log(`读取模板失败: ${e.message || e}`);
204 }
205 return this.signActId;
206 }
207
208 async queryAssets() {
209 const { data } = await axios.post(

Callers 1

signMethod · 0.95

Calls 4

headersMethod · 0.95
logMethod · 0.95
findSignActIdFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected