()
| 147 | } |
| 148 | } |
| 149 | async user_info() { |
| 150 | try { |
| 151 | let options = { |
| 152 | fn: "信息查询", |
| 153 | method: "get", |
| 154 | url: `https://wxapi.hoolo.tv/event/dtqp/index.php?s=/home/TmApi/getUserInformation&accountId=${this.accountId}&username=${encodeURIComponent(this.username)}&type=jsonp`, |
| 155 | headers: this.get_headers(), |
| 156 | }; |
| 157 | let { body: result } = await httpRequest(options); |
| 158 | //console.log(options); |
| 159 | result = JSON.parse(result); |
| 160 | //console.log(result); |
| 161 | if (result.code == 0) { |
| 162 | this.wxopenId = result.data.userid |
| 163 | } else { |
| 164 | console.log(`❌[${options.fn}]失败`); |
| 165 | console.log(JSON.stringify(result)); |
| 166 | } |
| 167 | } catch (e) { |
| 168 | console.log(e); |
| 169 | } |
| 170 | } |
| 171 | async read_status(articleId) { |
| 172 | try { |
| 173 | let options = { |
no test coverage detected