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

Method user_info

wxapp/wx_midea.js:38–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37 }
38 async user_info() {
39 try {
40 let options = {
41 fn: "信息查询",
42 method: "get",
43 url: `https://mvip.midea.cn/next/mucuserinfo/getmucuserinfo`,
44 headers: {
45 "Host": "mvip.midea.cn",
46 "Connection": "keep-alive",
47 "charset": "utf-8",
48 "cookie": this.ck,
49 "User-Agent": "Mozilla/5.0 (Linux; Android 10; MI 8 Lite Build/QKQ1.190910.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/111.0.5563.116 Mobile Safari/537.36 XWEB/1110005 MMWEBSDK/20230405 MMWEBID/2585 MicroMessenger/8.0.35.2360(0x2800235D) WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64 MiniProgramEnv/android",
50 "Content-Type": "application/json",
51 "Accept-Encoding": "gzip,compress,br,deflate",
52 "Referer": "https://servicewechat.com/wx03925a39ca94b161/409/page-frame.html"
53 },
54 }
55 let result = await httpRequest(options);
56 //console.log(options);
57 //console.log(result);
58 if (result["errcode"] == 0) {
59 console.log(`✅${options.fn}成功 [${result.data.userinfo.Mobile}] 当前积分[${result.data.userinfo.VipGrow}]🎉`);
60 msg += `✅${options.fn}成功 [${result.data.userinfo.Mobile}] 当前积分[${result.data.userinfo.VipGrow}]🎉\n`;
61 this.ckStatus = true;
62 } else {
63 console.log(`❌${options.fn}失败`);
64 msg += `❌${options.fn}失败\n`;
65 this.ckStatus = false;
66 console.log(JSON.stringify(result));
67 }
68 } catch (e) {
69 console.log(e);
70 }
71 }
72 async signIn() {
73 try {
74 let options = {

Callers

nothing calls this directly

Calls 2

httpRequestFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected