Files
shaguabijia-app-server/docs/api/ad/ad-reward-status.md
guke b23335d5fb @
docs: reorganize api docs into categorized subdirectories and fill missing docs

- Categorize 77 existing api docs into 16 business-domain subdirectories
  (auth/ad/wallet/coupon/compare/savings/signin/tasks/invite/user/
   device/platform/intent/meituan/other) plus admin/ and internal/
- Split admin/ into 7 sub-resource subdirectories (auth/users/wallet/
  withdraws/feedbacks/admins/ad) with 4 single-file docs at root
- Create 21 new docs covering 28 previously undocumented endpoints:
  ad/watch-report, wallet/transfer-auth (3 endpoints), coupon/session+
  stats+completed-today+prompt (7), invite/me+invitees+bind+landing-track,
  user/onboarding (2), platform/flags+ad-config+app-version,
  intent/step+precoupon/step, analytics/events, order/report,
  report/submit+records, feedback/config+records, trace/finalize
- Add mock request/response JSON examples to all new docs
- Create docs/README.md with full category index for LLM navigation
- Update docs/api/README.md: fix all links, add new endpoint rows,
  replace "no doc" markers with actual links
- Fix back-navigation links (./README.md -> ../README.md or
  ../../README.md) in all moved files
@
2026-07-03 14:56:50 +08:00

2.0 KiB
Raw Permalink Blame History

GET /api/v1/ad/reward-status — 今日看广告发奖进度

所属:Ad 组(前缀 /api/v1/ad | 鉴权:Bearer | ← 返回 API 索引

入参

无(用户由 token 确定)。

出参

响应 200:AdRewardStatusOut

字段 类型 说明
used_today int 今日已成功发奖次数
daily_limit int 每日发奖次数上限
remaining int 今日剩余可领次数
coin_per_ad int 历史兼容字段;正式发放按 eCPM 动态计算,当前返回 0
round_count int 本轮已看次数;当前 round_size=1,广告关闭后进入短冷却
cooldown_until datetime|null 3 秒短冷却结束时间(UTC ISO);null 表示不在冷却
watched_seconds_today int 今日已上报的激励视频观看秒数;当前仅兼容/排查用
watch_seconds_limit int 每日观看总时长上限;当前默认 0 表示未启用时长闸
watch_seconds_remaining int 今日剩余可观看秒数;watch_seconds_limit=0 时客户端不据此拦截

说明

福利页「看视频赚金币」用:

  • 展示「今日还能看 N 次」(remaining);单次金币正式按 eCPM 动态计算,不再用 coin_per_ad 预估
  • 任务行 CTA 4 态推导:adLoading → Loading;remaining==0 → Capped("明天再来");cooldown_until 在未来 → CoolingDown(显示 MM:SS 倒计时,不可点);否则 Normal("去赚取")
  • 弹窗 limit note:used_today >= daily_limit 显示「今日视频已到限额,明天再来」;cooldown_until!=null 显示「广告冷却中,3秒后再来」

冷却派生算法:取当日 status='granted' 记录里最近一个已完成轮(当前每 N=1 条算一轮)末尾那次的 created_at,加 3 秒。若仍 > now → 返回;否则返回 null。冷却是 UX 约束,后端发奖(/api/v1/ad/pangle-callback)只看 daily_limit,冷却期间穿山甲回调照常发奖。

真正发奖走 ad-pangle-callback(穿山甲 S2S)。