package redismodel // 虚拟支付相关 Redis key。 const ( // KeyVirtualPayUnpaid 查单补偿的「已确认未支付」负缓存:order_no。 // 命中表示最近一次 query_order 反查结果为未支付,本轮跳过该订单, // 避免大量「下单后不付款」的积压订单长期占满扫描名额,把真正已支付的订单挤出去。 KeyVirtualPayUnpaid = RedisPrefix + "xpay:unpaid:%s" // KeyVirtualRefundChecked 退款查单兜底的「已核对」标记:order_no。 // 命中表示 TTL 内已向微信反查过该订单的退款结果,本轮跳过,避免每轮重复调用 query_order。 KeyVirtualRefundChecked = RedisPrefix + "xpay:refund:checked:%s" // KeyVirtualRefundStuckAlert 「退款长期未完成」告警去重标记:order_no,TTL 内只告警一次,避免刷屏。 KeyVirtualRefundStuckAlert = RedisPrefix + "xpay:refund:stuck:%s" )