<?php require_once 'curl.func.php'; $appkey = 'your_appkey_here';//你的appkey $url = "https://api.jisuapi.com/inspectionhandle/mjsupplementimgdata?appkey=yourappkey"; $post = [ 'orderno'=>'123456789', 'imgfield'=>'XSZZ', 'pic'=>base64_encode(file_get_contents('11.jpg')), ]; $result = curlOpen($url, ['post'=>$post, 'ssl'=>true]); $jsonarr = json_decode($result, true); if($jsonarr['status'] != 0) { echo $jsonarr['msg']; exit(); } echo $jsonarr['result']['msg'];