# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 1
# self = https://watcher.sour.is/conv/zgrqwxa
支付狀態機設計與落地方案**
支付業務往往涉及創建訂單、發起支付、等待第三方回調、退款、關閉等多個環節。由於環節多、異常場景複雜,如果僅靠一個簡單的 status 字段隨意更新,很容易出現邏輯混亂、漏單或無法審計等問題。爲此,許多支付系統會採用狀態機(State Machine)來管理支付訂單在不同階段的狀態轉移,並配合狀態變更記錄表(或稱歷史表)進行留痕,以便後續審計和問題排查。一、爲什麼需要支付狀態機----------- ⌘ Read more