qihang-ecom-erp-open/api/erp-api/src/main/resources/application.yml

94 lines
4.0 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.

# 本地/兜底配置Nacos 不可达或 fail-fast=false 时使用Nacos 中 erp-api.yaml 会覆盖同名项
# 端口固定 38083请在 Nacos erp-api.yaml 中同步 server.port
# 与 maindata-aggboot 一致日志文件目录logback-spring.xml 中 FILE 输出到此目录下 erp-api.yyyy-MM-dd.log
yes.server.logWorkDir: ./logWork
server:
port: 38083
spring:
application:
name: erp-api
data:
redis:
host: 192.168.71.6
port: 6379
database: 0
password: HbxinhuaDB@2025
timeout: 10s
datasource:
driverClassName: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://192.168.71.10:3306/hbxh_erp_ecommerce_middleware?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: HbxinhuaDB@2025
mybatis-plus:
mapper-locations: classpath*:mapper/**/*Mapper.xml
type-aliases-package: cn.qihangerp.oms.domain;cn.qihangerp.module.domain;cn.qihangerp.security.entity;
external:
auth:
api-key: xh-uat-erp-api-ak
secret-key: xh-uat-erp-api-sk-9f2d3c4b5a6e7d8c
timestamp-skew-ms: 300000
# 上下架接口请求体日志upsert 时 pddPopAuth 已脱敏);生产可关
goods:
log-full-request: true
# 拼多多 POPupsert 落库后是否调用 pdd.goods.add须与 maindata yundt.maindata.erp-open.default-category-code 等对齐)
pdd:
publish-enabled: true
# 下架:请求体带 pddGoodsId+pddPopAuth 时走 pdd.goods.sale.status.setis_onsale=0
sale-status-set-enabled: true
gateway-url: https://gw-api.pinduoduo.com/api/router
# 发布前可选拉类目规则(诊断用)
auto-fetch-cat-rule: false
# sku-overrides 为空时按类目规则 + spec.id 自动拼规格(与 SKU 条数一致时才继续调 goods.add
auto-resolve-spec-ids-when-sku-overrides-empty: true
# 满件折 two_pieces_discount默认 9999 折)
two-pieces-discount: 99
# 拼单价 = 建议零售价 × (本值/100),默认 75=七五折
group-buy-discount-percent: 75
# 单买价(分)= 拼单价(分)+ 本值,默认 200=2 元
single-buy-add-fen: 200
# 图书 ISBN 在 goods_properties 的 ref_pid与 cat.rule 一致0=不自动拼 ext.isbn
isbn-goods-property-ref-pid: 425
# 按 pdd.goods.cat.rule.get 中 goods_properties_rule 必填项自动补全 goods_properties
fill-goods-properties-from-cat-rule: true
# 发品前 pdd.goods.image.uploadurlencodedimage=Base64与开放平台 curl/SDK 一致)
image-upload-enabled: true
# 下载后、上传拼多多前:按商品编辑规则校验轮播/商详/SKU 图(须开启图床上传才有下载字节)
material-validation-enabled: true
image-upload-max-bytes: 3145728
image-upload-allowed-host-suffixes:
- etjbooks.com.cn
image-upload-skip-host-suffixes:
- pddpic.com
- pinduoduo.com
- yangkeduo.com
# categoryCode请求体-> 拼多多叶子类目 cat_id与 maindata default-category-code=DEFAULT 对齐)
category-map:
DEFAULT: "15693"
# logisticsTemplateCode -> 店铺运费模板 cost_template_id与 maindata default-logistics-template-code=DEFAULT 对齐)
cost-template-map:
DEFAULT: "303351846671360"
sku-overrides: []
# 微信视频号小店platform=WEIXIN当前工程本地配置直接生效
sph:
publish-enabled: true
image-upload-url: https://api.weixin.qq.com/shop/ec/basics/img/upload
product-classify-url: https://api.weixin.qq.com/channels/ec/product/category/classify
product-add-url: https://api.weixin.qq.com/channels/ec/product/add
product-update-url: https://api.weixin.qq.com/channels/ec/product/update
fixed-leaf-cat-id-v2: 537901187
min-head-images: 3
listing-on-save: 1
http-read-timeout-seconds: 90
# express-template-id: 按需配置运费模板 ID
# 说明:对外商品接口见 temp/yunxi-erp-open-goods-upsert-api.mdNacos 对齐见 temp/erp-open-erp-api-nacos-yunxi-reference.md