MCPcopy Create free account
hub / github.com/anyehttp/quantumult-x / constructor

Method constructor

task/lccd.js:150–158  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

148
149class UserInfo {
150 constructor(str) {
151 this.index = ++userIdx;
152 this.token = str;
153 this.ckStatus = true
154 this.headers = {
155 'Authorization': this.token,
156 'User-Agent': "Mozilla/5.0 (iPhone; CPU iPhone OS 14_8 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.42(0x18002a2a) NetType/WIFI Language/zh_CNMozilla/5.0 (iPhone; CPU iPhone OS 14_8 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.42(0x18002a2a) NetType/WIFI Language/zh_CN"
157 }
158 }
159 getRandomTime() {
160 return randomInt(1000, 3000)
161 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected