MCPcopy
hub / github.com/smallfawn/QLScriptPublic / getArticleIds

Method getArticleIds

wxapp/haitian.js:231–243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229 }
230
231 async getArticleIds() {
232 try {
233 const result = await this.request("/pages/REGISTRATION_AGREEMENT,PRIVACY_PROTECTION_CLAUSE/articles/list", {
234 base: BASE_API,
235 auth: false,
236 });
237 const ids = Array.isArray(result) ? result.map(item => item.article_id).filter(Boolean) : [];
238 return ids.join(",");
239 } catch (e) {
240 $.log(`账号[${this.index}] 获取协议ID失败,继续登录: ${e.message || e}`);
241 return "";
242 }
243 }
244
245 async loginByWxCode() {
246 try {

Callers 1

loginByWxCodeMethod · 0.95

Calls 2

requestMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected