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

Function writeLocalData

task/Steampy.js:110–117  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

108
109// 写入本地数据
110function writeLocalData(data) {
111 console.log('写入本地数据');
112 try {
113 $.setdata(JSON.stringify(data, null, 4), 'steampy_data');
114 } catch (writeError) {
115 console.error(`写入本地数据失败: ${writeError}`);
116 }
117}
118
119// 获取游戏数据并处理价格
120async function getList(id, name, index) {

Callers 1

getListFunction · 0.70

Calls 2

logMethod · 0.45
setdataMethod · 0.45

Tested by

no test coverage detected