MCPcopy Create free account
hub / github.com/Xu22Web/tech-study-js / getTodayScore

Function getTodayScore

tech-study.js:634–649  ·  view source on GitHub ↗

* @description 获取当天总积分

()

Source from the content-addressed store, hash-verified

632 * @description 获取当天总积分
633 */
634async function getTodayScore() {
635 try {
636 const res = await fetch(API_CONFIG.todayScore, {
637 method: 'GET',
638 credentials: 'include',
639 });
640 // 请求成功
641 if (res.ok) {
642 const { data } = await res.json();
643 // 当天总分
644 const { score } = data;
645 return score;
646 }
647 }
648 catch (err) { }
649}
650/**
651 * @description 获取任务列表
652 */

Callers 1

refreshScoreInfoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected