MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / userInfo

Method userInfo

daily/mtf.js:44–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 await this.drwa()
43 }
44 async userInfo() {
45 let options = {
46 method: 'POST',
47 url: `https://api.58moto.com/user/center/info/principal`,
48 headers: {
49 "token": this.token,
50 "content-type": "application/x-www-form-urlencoded"
51 },
52 data: "uid=" + this.uid
53 }
54 let { data: result } = await axios.request(options);
55 if (result?.code == 0) {
56 $.log(`查询成功:当前手机号${result.data.mobile} \n 用户昵称为${result.data.username} 🎉`);
57 } else {
58 $.log(`查询: 失败 ❌ 了呢,原因未知!`);
59 console.log(result);
60 }
61 }
62 async signIn() {
63 let options = {
64 method: 'POST',

Callers 1

runMethod · 0.95

Calls 2

requestMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected