修正評審評分清單失敗問題

This commit is contained in:
2025-09-21 01:30:26 +08:00
parent 049b53fa43
commit a36ab3c98d
17 changed files with 251 additions and 274 deletions

View File

@@ -46,7 +46,6 @@ export function FavoritesPage() {
}, [user])
const handleUseApp = async (app: any) => {
console.log('handleUseApp 被調用', { user: user?.id, appId: app.id, appName: app.name })
try {
// Increment view count when using the app
@@ -65,7 +64,6 @@ export function FavoritesPage() {
if (response.ok) {
// 記錄用戶活動
try {
console.log('開始記錄用戶活動...')
const activityResponse = await fetch('/api/user/activity', {
method: 'POST',
headers: {
@@ -84,7 +82,6 @@ export function FavoritesPage() {
})
if (activityResponse.ok) {
console.log('活動記錄成功')
} else {
console.error('活動記錄失敗:', activityResponse.status, activityResponse.statusText)
}
@@ -98,7 +95,6 @@ export function FavoritesPage() {
console.error('增加查看次數失敗:', response.status, response.statusText)
}
} else {
console.log('用戶未登入,跳過活動記錄')
}
} catch (error) {
console.error('增加查看次數失敗:', error)
@@ -109,7 +105,6 @@ export function FavoritesPage() {
const url = app.appUrl.startsWith('http') ? app.appUrl : `https://${app.appUrl}`
window.open(url, "_blank", "noopener,noreferrer")
} else {
console.log(`Opening app: ${app.name}`)
}
}