Files
xianyu-auto-reply/global_config.yml
T
jinghui 198ccd3976 v1.1.0: AI回复max_tokens调优 + 商品编辑(标题/价格/描述) + API密钥掩码
- ai_reply_engine.py: 意图识别max_tokens=100, 回复生成max_tokens=2048
  (deepseek-v4-flash推理模型思考吃光token导致回复为空)
- 商品管理弹窗新增标题/价格/描述编辑, 写入本地item_info
  (闲鱼网页版不支持改真实商品, 界面已注明)
- GET ai-reply-settings密钥掩码 sk-4****27QK, PUT含****保留原值
- 新增自定义Dockerfile固化max_tokens补丁
- 新增.gitignore排除.env/data/logs/db, 仓库不含密钥
2026-10-22 12:07:09 +08:00

90 lines
3.4 KiB
YAML

API_ENDPOINTS:
login_check: https://passport.goofish.com/newlogin/hasLogin.do
message_headinfo: https://h5api.m.goofish.com/h5/mtop.idle.trade.pc.message.headinfo/1.0/
token: https://h5api.m.goofish.com/h5/mtop.taobao.idlemessage.pc.login.token/1.0/
APP_CONFIG:
api_version: '1.0'
app_key: 444e9908a51d1cb236a27862abc769c9
app_version: '1.0'
platform: web
AUTO_REPLY:
api:
enabled: false # 禁用API回复,使用AI回复或关键词回复
host: 0.0.0.0 # 绑定所有网络接口,支持IP访问
port: 8080 # Web服务端口
timeout: 10
url: http://localhost:8080/xianyu/reply # 修复URL地址
default_message: 亲爱的"{send_user_name}" 老板你好!所有宝贝都可以拍,秒发货的哈~不满意的话可以直接申请退款哈~
enabled: true
max_retry: 3
retry_interval: 5
ITEM_DETAIL:
auto_fetch:
enabled: true # 是否启用自动获取商品详情
api_url: https://selfapi.zhinianboke.com/api/getItemDetail # 外部API地址
timeout: 30 # 请求超时时间(秒)
max_concurrent: 3 # 最大并发请求数
retry_delay: 0.5 # 请求间隔(秒)
COOKIES:
last_update_time: ''
value: ''
DEFAULT_HEADERS:
accept: application/json
accept-language: zh-CN,zh;q=0.9
cache-control: no-cache
origin: https://www.goofish.com
pragma: no-cache
priority: u=1, i
referer: https://www.goofish.com/
sec-ch-ua: '"Not(A:Brand";v="99", "Google Chrome";v="133", "Chromium";v="133"'
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: '"Windows"'
sec-fetch-dest: empty
sec-fetch-mode: cors
sec-fetch-site: same-site
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/133.0.0.0 Safari/537.36
HEARTBEAT_INTERVAL: 15
HEARTBEAT_TIMEOUT: 5
LOG_CONFIG:
compression: zip
format: '<green>{time:YYYY-MM-DD HH:mm:ss.SSS}</green> | <level>{level: <8}</level>
| <cyan>{name}</cyan>:<cyan>{function}</cyan>:<cyan>{line}</cyan> - <level>{message}</level>'
level: INFO
retention: 7 days
rotation: 1 day
MANUAL_MODE:
enabled: false
timeout: 3600
toggle_keywords: []
MESSAGE_EXPIRE_TIME: 300000
TOKEN_REFRESH_INTERVAL: 36000 # 10小时刷新一次token(原来20小时太长)
TOKEN_RETRY_INTERVAL: 1800 # 失败后30分钟重试(原来2小时太长)
COOKIE_KEEPALIVE_INTERVAL: 7200 # 每2小时发一次保活请求,延长Cookie有效期
WEBSOCKET_HEADERS:
Accept-Encoding: gzip, deflate, br, zstd
Accept-Language: zh-CN,zh;q=0.9
Cache-Control: no-cache
Connection: Upgrade
Host: wss-goofish.dingtalk.com
Origin: https://www.goofish.com
Pragma: no-cache
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/133.0.0.0 Safari/537.36
WEBSOCKET_URL: wss://wss-goofish.dingtalk.com/
# 阿奇索转卖配置
AGISO_CONFIG:
enabled: true # 是否启用了阿奇索转卖功能
base_url: https://aldsidle.agiso.com # 阿奇索平台地址
api_endpoints:
verify: /api/GetUserInfo # 验证账户接口
upload: /api/upload # 图片上传接口
publish: /api/item/publish # 商品发布接口
item_list: /api/item/list # 商品列表接口
category_list: /api/category/list # 分类列表接口
timeout: 60 # 请求超时时间(秒)
max_concurrent: 3 # 最大并发请求数
retry_times: 2 # 重试次数
retry_delay: 1 # 重试间隔(秒)