()
| 70 | } |
| 71 | } |
| 72 | async signIn() { |
| 73 | try { |
| 74 | let options = { |
| 75 | fn: "签到", |
| 76 | method: "get", |
| 77 | url: `https://mvip.midea.cn/my/score/create_daily_score`, |
| 78 | headers: { |
| 79 | 'content-type': 'application/x-www-form-urlencoded; charset=UTF-8', |
| 80 | "cookie": this.ck, |
| 81 | }, |
| 82 | } |
| 83 | let result = await httpRequest(options); |
| 84 | //console.log(options); |
| 85 | //result = JSON.parse(result); |
| 86 | //console.log(result); |
| 87 | if (result["errcode"] == 0) { |
| 88 | console.log(`✅${options.fn}成功🎉`); |
| 89 | msg += `✅${options.fn}成功🎉\n`+JSON.stringify(result); |
| 90 | } else { |
| 91 | console.log(`❌${options.fn}失败`); |
| 92 | msg += `❌${options.fn}失败\n`; |
| 93 | console.log(JSON.stringify(result)); |
| 94 | } |
| 95 | } catch (e) { |
| 96 | console.log(e); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | async signIn2() { |
| 101 | try { |
no test coverage detected