#!/usr/bin/env php initialize(); try { $haichaoJst = \app\haichao\HaichaoJstServices::getServices(); echo "1️⃣ 测试 getProductListStand()...\n\n"; $result1 = $haichaoJst->getProductListStand(); echo "返回类型: " . gettype($result1) . "\n"; echo "原始数据:\n"; print_r($result1); echo "\n2️⃣ 测试 getInneropenItemList()...\n\n"; try { $result2 = $haichaoJst->getInneropenItemList(); echo "返回类型: " . gettype($result2) . "\n"; echo "数据数量: " . count($result2) . "\n"; if (!empty($result2)) { echo "第一条数据:\n"; print_r($result2[0]); } } catch (\Throwable $e) { echo "❌ 失败: " . $e->getMessage() . "\n"; } } catch (\Throwable $e) { echo "\n❌ 错误: " . $e->getMessage() . "\n"; }