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

Method login

xiaosatonglu.js:109–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107 }
108 }
109 async login() {
110 try {
111 let host_data = `/api/zbtxz/login`
112 let REQUEST_ID = this.getUUID();
113 let TIMESTAMP = Date.now();
114 let s = `${host_data}&&6565886da95d5a47f651317f&&${REQUEST_ID}&&${TIMESTAMP}&&FR*r!isE5W&&59`
115 //console.log(s)
116 let SIGNATURE = this.SHA256_Encrypt(s)
117 let options = {
118 fn: "登录",
119 method: 'post',
120 url: `https://vapp.tmuyun.com/api/zbtxz/login`,
121 headers: {
122 'X-SESSION-ID': `6565886da95d5a47f651317f`,
123 'X-REQUEST-ID': REQUEST_ID,
124 'X-TIMESTAMP': TIMESTAMP,
125 'X-SIGNATURE': SIGNATURE,
126 'X-TENANT-ID': `59`,
127 'User-Agent': '1.1.9;00000000-67f7-45bf-ffff-ffffa7397b83;Xiaomi MI 8 Lite;Android;10;Release',
128 'Cache-Control': 'no-cache',
129 Host: 'vapp.tmuyun.com',
130 Connection: 'Keep-Alive',
131 },
132 body: `check_token=&code=${this.code}&token=&type=-1&union_id=`
133 };
134 let { body: result } = await httpRequest(options);
135 //console.log(options);
136 result = JSON.parse(result);
137 //console.log(result)
138 if (result.code == 0) {
139 this.sessionId = result.data.session.id
140 this.accountId = result.data.session.account_id
141 this.username = result.data.account.nick_name
142 } else {
143
144 }
145 } catch (e) {
146 console.log(e);
147 }
148 }
149 async user_info() {
150 try {
151 let options = {

Callers 1

mainMethod · 0.95

Calls 4

getUUIDMethod · 0.95
SHA256_EncryptMethod · 0.95
httpRequestFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected