get(); foreach ($data as $k=>$v){ try { $info=$v->info; if ($info['Type']==1){ } }catch (\Exception $exception){ } } dd(); } public function SearchOrder($url,$id){ $client=new Client(); $data=[ 'ID'=>(int)$id ]; $token=UrlList::where('url',mb_substr($url,-1))->value('token'); $token='aHNaUXpaZkpVSGlTbVorYTBjOGNuUHM0VFlzZEovM2gySUNxMlM4RmNkaTdKa2MzZDg5SkNLOG93S0hyM1pzL29NOGh5V0JRcTdCUDU1OXJWcHN6K2xlcEFHTjhnZzlicHFxbnN3OC9qYWlPNUs3YThUN3E0YlZ0cGI1L2VIazc='; $url=$url.'/api/Admin/CompanyCustomerOrderList/GetOrderModel'; $re=$client->post($url,[ 'headers' => [ 'Content-Type' => 'application/json', // 设置请求头 'Auth-AdminToken' => $token, // 如果需要身份验证令牌 ], 'json'=>$data ]); Log::error($re->getBody()->getContents()); dd($re->getBody()->getContents()); } }