参数名称 | 参数类型 | 必填 | 默认值 | 示例值 | 备注 |
---|---|---|---|---|---|
total | String | 1 | 10000 | 税前工资 | |
free | String | 1 | 1000 | 五险一金及其他 |
<?php header('content-type:text/html;charset=utf-8'); $ch = curl_init(); $url = 'http://api.liangmlk.cn?ak=xxxx&appid=1752&total=xxxx&free=xxxx'; curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $res = curl_exec($ch); curl_close($ch); return json_decode($res,true);