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

Function getweima

wxapp/zhanma.js:804–833  ·  view source on GitHub ↗

* 喂马 *

(timeout = 2 * 1000)

Source from the content-addressed store, hash-verified

802 *
803 */
804async function getweima (timeout = 2 * 1000) {
805 return new Promise((resolve) => {
806 let url = {
807 url: `https://zm.t7a.cn/api/horseeat.php?safe=${zmnlxq}`,
808 headers: {
809 'Host': 'zm.t7a.cn',
810 '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'
811 },
812 // body: '',
813
814 }
815 $.get(url, async (error, response, data) => {
816 try {
817 result = JSON.parse(data)
818
819 if (result.status != 0) {
820 await getweima();
821 await $.wait(2 * 1000)
822 } else {
823 console.log(result.msg)
824 }
825
826 } catch (e) {
827 console.log(e)
828 } finally {
829 resolve();
830 }
831 }, timeout)
832 })
833}
834
835
836/**

Callers 1

zhanma.jsFile · 0.85

Calls 3

getMethod · 0.45
waitMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected