上架時報錯的程式修正

This commit is contained in:
2026-04-11 09:22:04 +08:00
parent 91b042983e
commit 5e2fbd63a4
4 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -43,7 +43,9 @@ class AuthApiService {
return {'code': -1, 'msg': '伺服器響應錯誤: ${response.statusCode}'};
}
} catch (e) {
return {'code': -1, 'msg': '網路連線異常'};
// return {'code': -1, 'msg': '網路連線異常'};
print("DEBUG: API Error -> $e"); // 在 Console 看真正的錯誤類型
return {'code': -1, 'msg': '網路連線異常: $e'};
}
}
}