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

Function joinxcx

wxapp/zhanma.js:263–291  ·  view source on GitHub ↗

* 小程序添加好友任务 *

(timeout = 2 * 1000)

Source from the content-addressed store, hash-verified

261 *
262 */
263function joinxcx (timeout = 2 * 1000) {
264 return new Promise((resolve) => {
265 let url = {
266 url: `https://zm.t7a.cn/api/joinxcx.php?safe=${zmnlxq}`,
267 headers: {
268 'Host': 'zm.t7a.cn',
269 'user-agent': 'Mozilla/5.0 (Linux; Android 10; MI 8 Build/QKQ1.190828.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.99 XWEB/3235 MMWEBSDK/20220204 Mobile Safari/537.36 MMWEBID/6242 MicroMessenger/8.0.20.2080(0x28001435) Process/appbrand0 WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64 miniProgram/wx532ecb3bdaaf92f9'
270 },
271 // body: '',
272
273 }
274 $.get(url, async (error, response, data) => {
275 try {
276 result = JSON.parse(data)
277 if (result.status == 1) {
278 console.log('加入排行榜成功!');
279 } else {
280 console.log('加入排行榜:', result.msg)
281
282 }
283
284 } catch (e) {
285 console.log(e)
286 } finally {
287 resolve();
288 }
289 }, timeout)
290 })
291}
292
293/**
294 * 小程序获取好友列表

Callers 1

zhanma.jsFile · 0.85

Calls 2

getMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected