MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / rewardText

Method rewardText

wxapp/longfor.js:490–500  ·  view source on GitHub ↗
(rewards = [])

Source from the content-addressed store, hash-verified

488 }
489
490 rewardText(rewards = []) {
491 if (!Array.isArray(rewards)) return "";
492 return rewards
493 .map((item) => {
494 const num = item?.reward_num || item?.num || item?.amount;
495 const name = item?.reward_name || item?.reward_type_name || item?.unit || "";
496 return num ? `${name}${num}` : "";
497 })
498 .filter(Boolean)
499 .join(",");
500 }
501
502 async signIn() {
503 await this.getPageConfig();

Callers 1

signInMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected