daShangDao_planA/planB/config.yaml
97694732@qq.com 422ddfbeba 各种修改
2026-06-29 08:58:33 +08:00

128 lines
6.8 KiB
YAML
Raw Permalink 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.

server:
port: "8080" #服务器端口
f_port : "8284" #F程序端口
filter: 1 #是否开启违禁词过滤器 0=关闭 1=开启
replace_mark: "0" #标题违规词是否替换* 0 不替换 1 替换(替换会继续发布,不替换则不发布)
redis_exp: 192 #redis过期时间 192小时8天
read_db: "sqlite" #读数据库 mysql sqlite
err_pause_time: 3000 #错误暂停时间(毫秒)
sign_key: "jRQdCh52Z55Kzh1hADaA2ZtdTKetj2PXk60Tz5Yc0iz9aD8Wafbk7CwAZ8cz69A9zb9caZ3k9dnR3Ys06J5nYFPrZ0xE9p6TY8DCD538ryiRjW81YTPmk41tCEnXizPh" #签名密钥
data_day: 2 #数据保存时间(天)
is_c: true #是否启动 C程序
speed: #限速器
pdd_speed: 18 #拼多多 每秒多少个任务
xianyu_speed: 5 #闲鱼 每秒多少个任务
watermark: 15 #打水印速率的个数
minio: #minio 图片空间
url: "shxy.image.yushutx.com" #minio地址
access_key_id: "minioadmin" #minio keyId
secret_access_key: "minioadmin" #minio key
bucket_name: "task-xianyu" #存储桶
target_dir: "test/2025" #目标目录
use_ssl: true #是否使用 SSL
alive:
fluent: 50 #存活状态-流畅时间(毫秒)
slow: 200 #存活状态-缓慢时间(毫秒)
pool_config:
size: 6 #协程数量
with_expiry_duration: 10 #过期时间
with_pre_alloc: true #预分配
with_max_blocking_tasks: 600 #阻塞任务数
with_nonblocking : true #非阻塞
mysql_config:
db_name: "task_user" #数据库名称
user: "root" #数据库用户名
password: "root" #数据库密码
host: "127.0.0.1" #数据库地址
port: 3306 #数据库端口
loglevel: "info" #数据库日志级别 info=开发环境输出所有日志SQL、执行时间等 warn=预发布:输出警告+错误 error=生产环境:只输出错误日志 silent=生产环境:关闭所有日志
max_retry_times: 3 #数据库重试次数
base_retry_interval: 100 #数据库重试间隔(毫秒)
max_retry_interval: 3 #数据库最大重试间隔(秒)
max_open_conns: 100 #数据库最大打开连接数
max_idle_conns: 20 #数据库最大空闲连接数
conn_max_idle_time: 30 #数据库连接最大空闲时间(分钟)
conn_max_lifetime: 1 #数据库连接最大生命周期(小数)
redis_config:
- db_name: "任务池"
db: 0
addr: "127.0.0.1:6379"
password: "123456"
- db_name: "书品库"
db: 7
addr: "36.212.12.247:6379"
password: "long6166@@"
- db_name: "店铺信息"
db: 8
addr: "36.212.12.247:6379"
password: "long6166@@"
- db_name: "出版社信息列表"
db: 3
addr: "36.212.12.247:6379"
password: "long6166@@"
- db_name: "省市区列表"
db: 4
addr: "36.212.12.247:6379"
password: "long6166@@"
- db_name: "没有图片的 isbn"
db: 5
addr: "36.212.12.247:6379"
password: "long6166@@"
- db_name: "没有书籍的 isbn"
db: 6
addr: "36.212.12.247:6379"
password: "long6166@@"
- db_name: "拼多多操作回调数据库"
db: 14
addr: "36.212.20.113:7963"
password: "j8nZ4jra2E"
pdd_config:
client_id: "203c5a7ba8bd4b8488d5e26f93052642" #拼多多clientId
client_secret: "892ffaa86e12b7a3d8d2942b669d9aa520ad8179" #拼多多clientSecret
kfz_config:
app_id: 576 #孔夫子appid
app_secret: "256e10220c5b307f5172b1a49c11467a6cfa8038bbe2a7feccc42231852324f8" #孔夫子appsecret
taobao_config:
app_key: 852496 #平台分配的 App Key
app_secret: "6876bd91e93840wet8d264255a24d892" #App 密钥,用于 HMAC-MD5 签名计算
token: "f614764edd33345a41acd10ed3edaa9d" #App 密钥,用于 HMAC-MD5 签名计算
ati: "455224047430" #设备/用户标识
user_id: "1779953588275" #当前操作用户 ID
company_id: "1779953588275" #公司/店铺所属 ID
base_url: "https://fxzs.yulinkai.com" #API 基础域名
local_img_dir: "D:\\file\\taobao" #图片本地缓存目录
request_timeout: 20 #请求超时时间(秒)
http_url:
task_url: "http://127.0.0.1:8080" #A 程序接口地址
file_url:
xian_yu_dll: "D:\\source\\daShangDao_planA\\planB\\modules\\xianYu" #闲鱼 DLL库路径
pdd_dll: "D:\\source\\daShangDao_planA\\planB\\modules\\pdd" #拼多多 DLL库路径
kfz_dll: "D:\\source\\daShangDao_planA\\planB\\modules\\kfz" #孔夫子 DLL库路径
log_dll: "D:\\source\\daShangDao_planA\\planB\\modules\\logs" #日志 DLL库路径
image_dll: "D:\\source\\daShangDao_planA\\planB\\modules\\image" #水印 DLL库路径
b_file_name: "D:\\source\\daShangDao_planA\\planB\\planB.exe" #B 程序文件路径
c_file_name: "D:\\source\\daShangDao_planA\\planC\\planC.exe" #C 程序文件路径
d_file_name: "D:\\source\\daShangDao_planA\\planD\\planD.exe" #D 程序文件路径
e_file_name: "D:\\source\\daShangDao_planA\\planE\\planE.exe" #E 程序文件路径
f_file_name: "D:\\source\\daShangDao_planA\\planE\\planF.exe" #F 程序文件路径
create_task_url: "https://api.buzhiyushu.cn/zhishu/baseInfo/addNewTask" #新增任务接口
create_task_notice_url: "http://36.212.12.92:8055/task" #核价软件提交数据通知接口
create_operation_task_notice_url: "http://36.212.12.92:8055/taskV2" #操作商品任务核价软件提交数据通知接口
banned_word_substitution_url : "http://36.212.12.247:13001/task/getFilterSetNew" #违禁词替换接口
pdd_token_url: "https://api.buzhiyushu.cn/huidiao/pdd/getToken" #获取系统规定拼多多 token
deduction_url: "https://api.buzhiyushu.cn/zhishu/userRecharge/apiBalancePayment" #扣费接口
pdd_get_goods_url: "http://pdd.buzhiyushu.cn/api/pdd/auth/getShopGoodsList" #查询拼多多商品接口
pdd_get_goods_detail_url: "http://pdd.buzhiyushu.cn/api/pdd/auth/newGetShopGoodsDetailList" #查询拼多多商品详情列表接口
pdd_add_goods_url: "http://119.45.237.193:14003/task/putShopGoods" #添加拼多多商品接口
pdd_get_sku_id: "http://192.168.101.127:18099/shopGoods/getShopGoods" #批量获取 skuId接口
xianyu_add_goods_url: "http://119.45.237.193:14008/task/putShopGoods" #添加闲鱼商品接口
kfz_add_goods_url: "http://119.45.237.193:14009/task/kfzverifyPricePublishGoods" #添加孔夫子商品接口
del_task_url: "http://119.45.237.193:14008/shopGoods/delShopGoodsk" #删除任务通知接口
backup_url: "D:\\file\\backup" #备份文件路径
pdd_goods_details_url: "D:\\file\\pdd_goods_details" #保存拼多多详情路径
update_token_url: "http://146.56.227.42:9099/api/updateToken" #更新拼多多 token 到redis
kfz_img_temp_url: "D:\\file\\kfzImg" #孔夫子图片临时路径
kfz_img_http_url: "https://www0.kfzimg.com/" #孔夫子图片 http 路径
get_pdd_goods_shopid_isbn_url : "http://119.45.237.193:14008/shopGoods/selectTrilateralIds" #获取拼多多商品 shopId 和 isbn
get_subscription_expiration_date_url : "http://119.45.237.193:9096/api/user/getKfzUserRecbusiness" #获取订阅到期时间
pdd_img_temp_url: "D:\\file\\pddImg" #拼多多图片临时路径