fix: rating-history API - pass auth token, fix table/column names
- frontend: pass token to listRatingHistory API call - backend: fix SQL table name redeem_logs -> redeem_records - backend: fix SQL column name title -> task_code in daily_task_logs Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
这个提交包含在:
@@ -149,7 +149,7 @@ export default function MePage() {
|
||||
apiFetch<RedeemItem[]>("/api/v1/me/redeem/items", {}, tk),
|
||||
apiFetch<RedeemRecord[]>("/api/v1/me/redeem/records?limit=200", {}, tk),
|
||||
apiFetch<DailyTaskPayload>("/api/v1/me/daily-tasks", {}, tk),
|
||||
listRatingHistory(50),
|
||||
listRatingHistory(50, tk),
|
||||
]);
|
||||
setProfile(me);
|
||||
setItems(redeemItems ?? []);
|
||||
|
||||
@@ -98,6 +98,6 @@ export interface RatingHistoryItem {
|
||||
note: string;
|
||||
}
|
||||
|
||||
export async function listRatingHistory(limit: number = 100): Promise<RatingHistoryItem[]> {
|
||||
return apiFetch<RatingHistoryItem[]>(`/api/v1/me/rating-history?limit=${limit}`);
|
||||
export async function listRatingHistory(limit: number = 100, token?: string): Promise<RatingHistoryItem[]> {
|
||||
return apiFetch<RatingHistoryItem[]>(`/api/v1/me/rating-history?limit=${limit}`, {}, token);
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户