| 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', |