$response->getBody()为stdClass类型(查看类型用gettype(变量)) $result = json_decode($response->getBody(),true);此时$result为数组类型