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

Function gzhkl

wxapp/zhanma.js:518–548  ·  view source on GitHub ↗

* 公众号口令只可完成一次 *

(timeout = 2 * 1000)

Source from the content-addressed store, hash-verified

516 *
517 */
518function gzhkl (timeout = 2 * 1000) {
519 return new Promise((resolve) => {
520 let url = {
521 url: `https://zm.t7a.cn/api/gzhkl.php?safe=${zmnlxq}&kl=${encodeURIComponent('有能量 当燃战马!')}`,
522 headers: {
523 'Host': 'zm.t7a.cn',
524 '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'
525 },
526 // body: '',
527
528 }
529 $.get(url, async (error, response, data) => {
530 try {
531 result = JSON.parse(data)
532 if (result.status == 0) {
533
534 console.log(result.msg)
535
536 } else {
537
538 console.log(result.msg)
539
540 }
541 } catch (e) {
542 console.log(e)
543 } finally {
544 resolve();
545 }
546 }, timeout)
547 })
548}
549
550
551/**

Callers 1

getuserFunction · 0.85

Calls 2

getMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected