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

Function assetValue

wxapp/ytb2_all.js:92–98  ·  view source on GitHub ↗
(memberInfo = {}, keys = [], names = [])

Source from the content-addressed store, hash-verified

90}
91
92function assetValue(memberInfo = {}, keys = [], names = []) {
93 const assets = Array.isArray(memberInfo.assets) ? memberInfo.assets : [];
94 for (const item of assets) {
95 if (keys.includes(item.key) || names.includes(item.name)) return item.num ?? 0;
96 }
97 return 0;
98}
99
100function findSignActId(source) {
101 let found = "";

Callers 1

queryAssetsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected