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

Method user_info

xiaosatonglu.js:149–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 = {

Callers 1

mainMethod · 0.95

Calls 3

get_headersMethod · 0.95
httpRequestFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected