Files
ircloud-assistant/memory/2026-04-01.md

34 lines
1.2 KiB
Markdown
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.
---
## 每日学习总结heartbeat 凌晨自动执行)
### 今日关键教训
1. **库存必须累加所有可用仓库**(教训深刻)
- 审核订单时,误用总部仓库库存判断,导致正常订单被跳过
- 正确方式:先 GET /invoicing-aggregation/warehouses 获取所有 status=1 的仓库,分别查库存并累加 availableAmount
2. **易订货下单必填字段**
- deliveryMethodId=1到店自提不能用 deliveryType
- saleRate=100.0不是1.0
- 客户 status=0 表示停用,无法下单
3. **商品搜索接口认证**
- openapi.77ircloud.com 和 suite.77ircloud.com 是两套认证体系
- suite 用 accounts.77ircloud.com 登录获取 jwtauthorization 请求头无 Bearer 前缀
### 新学会的技能
1. **Playwright + Chrome headless**
- 服务器已有 Google Chrome 146
- 用 Playwright 可控制浏览器完成自动化操作
- 截图片用 message media 发送,飞书原生图片显示
2. **易订货客户预警分析**
- 页面https://suite.77ircloud.com/#/waring/customers
- 发现主要问题订货额低387家、流失354家、欠款107家逾期