* @description 获取当天总积分
()
| 632 | * @description 获取当天总积分 |
| 633 | */ |
| 634 | async 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 | */ |