diff --git a/src/components/userGacha/gro-chart-calendar.vue b/src/components/userGacha/gro-chart-calendar.vue index 9c2128a4..b3abd825 100644 --- a/src/components/userGacha/gro-chart-calendar.vue +++ b/src/components/userGacha/gro-chart-calendar.vue @@ -79,7 +79,7 @@ const chartHeight = computed(() => { * @returns {EChartsOption} */ async function getCalendarOptions(): Promise { - const records = await TSUserGacha.getGachaRecordsGroupByDate(props.uid, props.gachaType); + const records = await TSUserGacha.record.time(props.uid, props.gachaType); // 获取最大长度 const maxLen = Math.max(...Object.values(records).map((v) => v.length)); // 获取年份 diff --git a/src/components/userGacha/gro-chart-overview.vue b/src/components/userGacha/gro-chart-overview.vue index f09aeffd..f3a2b56a 100644 --- a/src/components/userGacha/gro-chart-overview.vue +++ b/src/components/userGacha/gro-chart-overview.vue @@ -72,7 +72,7 @@ const chartEl = useTemplateRef>("chartRef"); * @returns {EChartsOption} */ async function getOverviewOptions(): Promise { - const records = await TSUserGacha.getGachaRecords(props.uid); + const records = await TSUserGacha.record.all(props.uid); const data: EChartsOption = { title: [ { text: ">> 祈愿系统大数据分析 <<", left: "center", top: "5%" }, diff --git a/src/components/userGacha/gro-chart-stackbar.vue b/src/components/userGacha/gro-chart-stackbar.vue index b245c135..bb8c94a3 100644 --- a/src/components/userGacha/gro-chart-stackbar.vue +++ b/src/components/userGacha/gro-chart-stackbar.vue @@ -72,7 +72,7 @@ const chartEl = useTemplateRef>("chartRef"); * @returns {EChartsOption} */ async function getStackBarOptions(): Promise { - const records = await TSUserGacha.getGachaRecordsGroupByDate(props.uid, props.gachaType); + const records = await TSUserGacha.record.time(props.uid, props.gachaType); const dataCount = Object.keys(records).length; const xAxis = { type: "category", diff --git a/src/components/userGacha/gro-history.vue b/src/components/userGacha/gro-history.vue index 4af2271f..7483e5cd 100644 --- a/src/components/userGacha/gro-history.vue +++ b/src/components/userGacha/gro-history.vue @@ -1,6 +1,7 @@ +