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

Function getTotalScore

tech-study.js:615–630  ·  view source on GitHub ↗

* @description 获取总积分

()

Source from the content-addressed store, hash-verified

613 * @description 获取总积分
614 */
615async function getTotalScore() {
616 try {
617 const res = await fetch(API_CONFIG.totalScore, {
618 method: 'GET',
619 credentials: 'include',
620 });
621 // 请求成功
622 if (res.ok) {
623 const { data } = await res.json();
624 // 总分
625 const { score } = data;
626 return score;
627 }
628 }
629 catch (err) { }
630}
631/**
632 * @description 获取当天总积分
633 */

Callers 1

refreshScoreInfoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected