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

Method user_info

daily/dfyc.js:52–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 }
51 }
52 async user_info() {
53 try {
54 let options = {
55 method: "post",
56 url: `https://eapp.eastobacco.com/index.php?m=api&c=user&a=userinfo`,
57 headers: {
58 "Content-Type": "application/x-www-form-urlencoded"
59 },
60 data: `platform=android&token=${this.ck}&timestamp=${Date.now()}&api_version=4`
61 }
62 let { data: result } = await axios.request(options);
63 //console.log(options);
64 //console.log(result);
65 if (result.code == 200) {
66 $.log(`✅账号[${this.index}] 积分[${result.data.point}]🎉`)
67 this.ckStatus = true;
68 } else {
69 console.log(`❌账号[${this.index}] 用户查询: 失败`);
70 this.ckStatus = false;
71 console.log(result);
72 }
73 } catch (e) {
74 console.log(e);
75 }
76 }
77
78 async task_daka() {
79 try {

Callers 1

runMethod · 0.95

Calls 2

requestMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected