feat: 统一顺运宝日期同步并记录历史 (#59)

This commit is contained in:
chengma
2026-08-09 18:22:58 +08:00
parent ea7932db63
commit 05a54b044d
18 changed files with 934 additions and 144 deletions
+2 -2
View File
@@ -527,7 +527,7 @@ func (c *Client) ListPage(ctx context.Context, dateFrom, dateTo string, start, p
for _, raw := range wrap.List {
id, ok := toInt64(raw["id"])
if !ok {
return nil, 0, fmt.Errorf("货运单列表里有一行缺少合法的 id: %v", raw)
return nil, 0, fmt.Errorf("货运单列表里有一行缺少合法的 id")
}
code, _ := raw["code"].(string)
rows = append(rows, StockRow{ID: id, Code: code, Raw: raw})
@@ -588,7 +588,7 @@ func (c *Client) DetailListByStock(ctx context.Context, ids []int64) ([]StockDet
for _, raw := range wrap.List {
id, ok := toInt64(raw["id"])
if !ok {
return nil, fmt.Errorf("货运单明细里有一行缺少合法的 id: %v", raw)
return nil, fmt.Errorf("货运单明细里有一行缺少合法的 id")
}
code, _ := raw["code"].(string)