
- 在MomentListItem中新增点赞功能,用户点击按钮可触发点赞请求。 - 使用MVVM+Combine架构管理点赞状态,确保UI与状态同步。 - 添加加载状态和错误处理,提升用户体验和交互反馈。 - 更新相关视图以支持新的点赞逻辑,优化代码可读性和维护性。
27 lines
1.1 KiB
Plaintext
27 lines
1.1 KiB
Plaintext
✅ [API Response] [11:19:32.208] ===================
|
|
⏱️ Duration: 0.258s
|
|
📊 Status Code: 200
|
|
🔗 URL: https://api.epartylive.com/dynamic/like?uid=7&likedUid=563&status=1&worldId=-1&dynamicId=8
|
|
📏 Data Size: 0 KB
|
|
📋 Response Headers:
|
|
Alt-Svc: h3=":443"; ma=2592000, h3-29=":443"; ma=2592000, h3-27=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q043=":443"; ma=2592000, h3-Q039=":443"; ma=2592000, quic=":443"; ma=2592000; v="39,43,46"
|
|
Content-Length: 58
|
|
Content-Type: application/json
|
|
Date: Thu, 07 Aug 2025 03:19:34 GMT
|
|
Server: TencentEdgeOne
|
|
Vary: Origin, Access-Control-Request-Method, Access-Control-Request-Headers
|
|
eo-cache-status: MISS
|
|
eo-log-uuid: 6089645366037004798
|
|
📦 Response Data:
|
|
{
|
|
"message" : "success",
|
|
"timestamp" : 1754536774238,
|
|
"code" : 200
|
|
}
|
|
=====================================
|
|
🎯 [Decoded Response] [11:19:32.210] Type: LikeDynamicResponse
|
|
=====================================
|
|
|
|
[error] ❌ MomentListItem: 点赞操作失败
|
|
[error] 动态ID: 8
|
|
[error] 错误: success |