首页 年检代办 年检代办示例代码 六年免检-重新补资料[PHP]

六年免检-重新补资料示例代码PHP

作者: 阅读数:1169 上传时间:2025-03-28

六年免检-重新补资料

<?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'];