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

Method todayAward

wxapp/oppo.js:249–253  ·  view source on GitHub ↗
(detail = {})

Source from the content-addressed store, hash-verified

247 }
248
249 todayAward(detail = {}) {
250 const today = todayText();
251 const awards = Array.isArray(detail.baseAwards) ? detail.baseAwards : [];
252 return awards.find((item) => String(item.signTime || "").slice(0, 10) === today) || awards[0] || {};
253 }
254
255 async querySignDetail() {
256 const detail = await this.getSignDetail();

Callers 1

querySignDetailMethod · 0.95

Calls 1

todayTextFunction · 0.70

Tested by

no test coverage detected