Files
ecom-dmb/ecom-dmb-backend/src/main/resources/config/channel-pdd.yml
T

47 lines
1.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 拼多多渠道配置(OAuth / POP 分页 / PMC topics / 订单同步)
# 由 application.yml 通过 spring.config.import 引入
# POP 限流见 channel-pdd-pop-rate-limit.yml;msg.enabled 见各 application-{profile}.yml
pdd:
oauth:
client-id: 9b71d887c8dc4b46998dedfdeca9b866
client-secret: c626f640a6fd5f56b2c8c009a5eb2d5683e6b955
# 须与开放平台应用回调一致;经网关时注意 /api-dev 与后端 /api 前缀
redirect-uri: https://ecbi.newloop.top/api/channel/pdd/auth/callback
authorize-url: https://fuwu.pinduoduo.com/service-market/auth
state-ttl-seconds: 600
pop:
default-page-size: 100
# PMC 消息:enabled 在环境配置中设置(多实例仅一台开启)
msg:
auto-permit: true
goods-topics:
- pdd_goods_GoodsAdd
- pdd_goods_GoodsUpdate
- pdd_goods_GoodsOnShelf
- pdd_goods_GoodsOffShelf
- pdd_goods_GoodsDelete
order-sync:
overlap-seconds: 120
lock-ttl-seconds: 600
incremental-job-enabled: true
incremental-cron: "0 */5 * * * ?"
full-task-enabled: true
# 同店全量按天并行上限(受单店 POP 限流约束)
max-parallel-days-per-shop: 2
# Rabbit 消费者并发(多店并行)
full-listener-concurrency: "2-4"
inc-listener-concurrency: "2-4"
# 订单转换:同店 FULL 按天并行;FULL/INC 拆队列且同店互斥
order-convert:
max-parallel-days-per-shop: 2
lock-ttl-seconds: 600
full-listener-concurrency: "2-4"
inc-listener-concurrency: "2-4"
busy-delay-ms: 5000
busy-max-retry: 20