1
This commit is contained in:
@@ -160,7 +160,7 @@ Expected: 无输出、exit 0
|
||||
curl -s -o /dev/null -w "%{http_code} %{content_type}\n" "http://127.0.0.1:8080/api/v1/app/cover?namePrefix=RNPHE"
|
||||
curl -s -o /dev/null -w "%{http_code}\n" "http://127.0.0.1:8080/api/v1/app/cover?namePrefix=不存在的"
|
||||
```
|
||||
Expected: 第一行 `200 image/jpeg`(或图片 mime),第二行 `500`(统一包装的错误码;若无 404 专门码,确认返回非 200 即可)。
|
||||
Expected: 第一行 `200 image/jpeg`(或图片 mime),第二行 `200` + body `{"code":1010,...}`(项目统一响应惯例:HTTP 恒 200,业务错误在 body code;App 端图片解码失败走占位图)。
|
||||
|
||||
- [ ] **Step 5: Commit**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user