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

Function runAccount

wxapp/tclx_lc.js:166–176  ·  view source on GitHub ↗
(openid, index)

Source from the content-addressed store, hash-verified

164}
165
166async function runAccount(openid, index) {
167 $.log(`\n========== ${APP.name} 账号[${index}] ${openid} ==========`);
168 const runner = new Tongcheng(openid);
169 try {
170 $.log(`登录:${await runner.login()}`);
171 $.log(`查询:${await runner.query()}`);
172 $.log(`签到:${await runner.sign()}`);
173 } catch (e) {
174 $.log(`执行失败:${e.message || e}`);
175 }
176}
177
178(async () => {
179 const accounts = (process.env[CK_NAME] || DEFAULT_OPENID || "")

Callers 1

tclx_lc.jsFile · 0.70

Calls 4

loginMethod · 0.95
queryMethod · 0.95
signMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected