ZHIWEI666 commited on
Commit
84ecb90
·
verified ·
1 Parent(s): a186947

Upload router_items.py

Browse files
Files changed (1) hide show
  1. router_items.py +2 -1
router_items.py CHANGED
@@ -130,7 +130,8 @@ async def get_creators(sort: str = "downloads", limit: int = 100):
130
  "daily_views": sum(i.get("daily_views", 0) for i in u_items),
131
  "toolsCount": tools_count, "appsCount": apps_count, "followers": len(u.get("followers", [])), "created_at": u.get("created_at", 0),
132
  "recent_tips": u.get("tip_history", {}).get(datetime.date.today().strftime("%Y-%m"), 0), # 🚀 新增:本月收益统计
133
- "commentsData": comments_db.get(account, []),
 
134
  "trendData": {
135
  "months": months,
136
  "tools": [trend_tools[m] for m in months],
 
130
  "daily_views": sum(i.get("daily_views", 0) for i in u_items),
131
  "toolsCount": tools_count, "appsCount": apps_count, "followers": len(u.get("followers", [])), "created_at": u.get("created_at", 0),
132
  "recent_tips": u.get("tip_history", {}).get(datetime.date.today().strftime("%Y-%m"), 0), # 🚀 新增:本月收益统计
133
+ "commentsData": comments_db.get(account, []),
134
+ "tip_board": u.get("tip_board", []), # 🎁 打赏榜数据
135
  "trendData": {
136
  "months": months,
137
  "tools": [trend_tools[m] for m in months],