feat: 为订单表添加 IAP 相关字段并调整 IAP 对账逻辑参数。
Build docker and publish / build (20.15.1) (push) Successful in 7m34s
Build docker and publish / build (20.15.1) (push) Successful in 7m34s
This commit is contained in:
@@ -23,5 +23,5 @@ func (l *DailyReconcileLogic) ProcessTask(ctx context.Context, _ *asynq.Task) er
|
||||
logger.Infof("[IAPDailyReconcile] start at %s", time.Now().Format("2006-01-02 15:04:05"))
|
||||
// 第三层:扫描 1min ~ 48h,trade_no 非空(trade_no 为空说明客户端从未上传过 token,服务端无法主动补单)
|
||||
// 实际上与第二层的区别是时间窗口:覆盖全天的遗漏
|
||||
return l.inner.reconcile(ctx, 1*time.Minute, 48*time.Hour, true)
|
||||
return l.inner.reconcile(ctx, 1*time.Minute, 48*time.Hour, false)
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ func NewReconcileLogic(svc *svc.ServiceContext) *ReconcileLogic {
|
||||
|
||||
func (l *ReconcileLogic) ProcessTask(ctx context.Context, _ *asynq.Task) error {
|
||||
logger.Infof("[IAPReconcile] start at %s", time.Now().Format("2006-01-02 15:04:05"))
|
||||
return l.reconcile(ctx, 5*time.Minute, 48*time.Hour, true)
|
||||
return l.reconcile(ctx, 5*time.Minute, 48*time.Hour, false)
|
||||
}
|
||||
|
||||
// reconcile 核心对账逻辑,被第二层和第三层共享
|
||||
|
||||
Reference in New Issue
Block a user