---
title: "测吉凶错误处理与边界容错：ret_code 判断、空 expList、参数校验|万维易源ShowAPI"
canonical_url: "https://www.showapi.com/guides/fortune-error-handling-1617"
last_updated: "2026-09-02T13:54:54+08:00"
meta:
  description: "成功判定要双层：外层 showapi_res_code==0 仅代表通道正常，业务必须再看 showapi_res_body.ret_code==\"0\"。"
  keywords: "测吉凶错误处理与边界容错：ret_code 判断、空 expList、参数校验"
  "og:description": "成功判定要双层：外层 showapi_res_code==0 仅代表通道正常，业务必须再看 showapi_res_body.ret_code==\"0\"。"
  "og:title": "测吉凶错误处理与边界容错：ret_code 判断、空 expList、参数校验"
---

*

*

*

**

*