fix: 如实显示型号不存在提示并简化飞书异常回复
This commit is contained in:
@@ -60,11 +60,28 @@ Rules and expected results:
|
||||
- a valid API date in another calendar year remains usable without a local holiday calendar;
|
||||
- accept zero workdays; reject negative, fractional, boolean, or non-numeric workday values and invalid dates;
|
||||
- if either new field is missing or invalid, report the lead-time result as unavailable instead of falling back to old fields or estimating;
|
||||
- a stopped original-model reply includes `原因:` identifying each missing, empty, or invalid field and a suggestion to check the API data; no record is appended;
|
||||
- a stopped original-model reply includes `原因:` identifying each missing, empty, or invalid item in everyday Chinese and a suggestion to check the query result; no record is appended;
|
||||
- each unavailable candidate is listed with its own reason; HTTP 404 or missing fields must not be summarized as a confirmed nonexistent model;
|
||||
- controlled-query failures show their safe category (configuration, authentication/permissions, HTTP, TLS, DNS/network, timeout, or JSON format), without displaying raw response bodies or secret-bearing error strings;
|
||||
- controlled-query failures explain their safe known cause in everyday Chinese, without HTTP codes, TLS, DNS, JSON, API Key, field-type requirements, arbitrary response bodies, or secret-bearing error strings;
|
||||
- choose the fastest candidate using the API workday count, even when the natural-day totals would rank candidates differently.
|
||||
|
||||
## Sample 1C | Product Model Not Found Notice
|
||||
|
||||
Local mocked response, matching AR51's screenshot:
|
||||
|
||||
```json
|
||||
{"success": true, "data": "产品型号不存在,请检查产品型号是否正确"}
|
||||
```
|
||||
|
||||
Expected:
|
||||
|
||||
- for `eRob70H50I-FS-18CNC[V5]`, quantity 5, show `查询系统提示:产品型号不存在,请检查产品型号是否正确。`;
|
||||
- if this is the original model, stop before candidate queries and record append, with the reason and a plain-language suggestion to check the input;
|
||||
- if this is a candidate, retain its batch position and show its own system notice under `不可用候选`, for both initial and continuation batches;
|
||||
- do not show `data 格式错误` or assume a delivery date from `success=true`;
|
||||
- unknown text and missing/unreadable query results must not be labeled as confirmed nonexistent models or echoed verbatim; explain the known issue in everyday Chinese;
|
||||
- the fixed disclaimer appears once at the end, and no new dependency or configuration is required.
|
||||
|
||||
## Sample 1A | Continue With Other Candidates
|
||||
|
||||
Preconditions:
|
||||
|
||||
Reference in New Issue
Block a user