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

Method art_list

jlld.js:153–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 }
152
153 async art_list() {
154 try {
155 let options = {
156 fn: "文章列表",
157 method: "get",
158 url: `https://app-api.radar-ev.com/appapi/content/essay/pageCommunity?current=1&size=20&channelId=PD3455168030976339970`,
159 headers: this.headers,
160 }
161 let { body: result } = await $.httpRequest(options);
162 //console.log(options);
163 //console.log(result);
164 if (result.code == 0) {
165 this.artList = result.data.records
166 } else {
167 console.log(`❌账号[${this.index}] 获取文章失败`);
168 console.log(result);
169 }
170 } catch (e) {
171 console.log(e);
172 }
173 }
174}
175
176async function start() {

Callers 1

mainMethod · 0.95

Calls 2

httpRequestMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected