MCPcopy
hub / github.com/chavyleung/scripts / getdata

Method getdata

Env.js:253–269  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

251 }
252
253 getdata(key) {
254 let val = this.getval(key)
255 // 如果以 @
256 if (/^@/.test(key)) {
257 const [, objkey, paths] = /^@(.*?)\.(.*?)$/.exec(key)
258 const objval = objkey ? this.getval(objkey) : ''
259 if (objval) {
260 try {
261 const objedval = JSON.parse(objval)
262 val = objedval ? this.lodash_get(objedval, paths, '') : val
263 } catch (e) {
264 val = ''
265 }
266 }
267 }
268 return val
269 }
270
271 setdata(val, key) {
272 let issuc = false

Callers 15

getjsonMethod · 0.45
runScriptMethod · 0.45
signFunction · 0.45
dongqiudi.jsFile · 0.45
everphoto.jsFile · 0.45
qmnovel.jsFile · 0.45
GetCookieFunction · 0.45
videoqq.jsFile · 0.45
mgtv.jsFile · 0.45
qmkg.jsFile · 0.45
mihoyo.jsFile · 0.45
yanxuan.jsFile · 0.45

Calls 2

getvalMethod · 0.45
lodash_getMethod · 0.45

Tested by

no test coverage detected