function payOutCardInfo($card_id,$amount) {$url = config('payOut.url').'v1/cash-out/card-info';$headers = ['accept: */*','Content-Type: application/json'];//$data = ['cardId' => $card_id,'amount' => $amount,];// 将数据转换为JSON格式$jsonData = json_encode($data);// 初始化cURL会话$ch = curl_init($url);// 设置cURL选项curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // 返回响应结果而不是直接输出curl_setopt($ch, CURLOPT_POST, true); // 设置为POST请求curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); // 设置头部信息curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonData); // 设置POST字段// 执行cURL会话并获取响应$response = curl_exec($ch);// 关闭cURL会话curl_close($ch);return json_decode($response,true); }