摘要: // 1. 检查是否为空 if (empty($data)) { return Result::Error(1, "API 返回数据为空"); } // 2. 检查是否是 JSON 格式(简单判断) if (!preg_match('/^\{.*\}$/s', trim($data))) { ret 阅读全文
posted @ 2025-03-14 10:04 窦戈 阅读(23) 评论(0) 推荐(0)