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

Method applyToken

wxapp/gyjj.js:140–145  ·  view source on GitHub ↗
(data = {})

Source from the content-addressed store, hash-verified

138 }
139
140 applyToken(data = {}) {
141 this.token = String(data.token || data.authorization || "").replace(/^Mer/i, "");
142 this.sessionKey = data.sessionKey || "";
143 this.userId = data.userId || "";
144 this.userInfo = data.userInfo || {};
145 }
146
147 headers(extra = {}) {
148 return {

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected