联系官方销售客服
1835022288
028-61286886
自定义页面模板调用下面代码报错,求指点 <?php $urls = array( {module module=topic num=30} '{$t.url}', {/module} ); $api = 'http://data.zz.baidu.com/urls?site=https://mip.5ycg.com&token=FIwaqSkXOLHwGO2D&type=mip'; $ch = curl_init(); $options = array( CURLOPT_URL => $api, CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_POSTFIELDS => implode("\n", $urls), CURLOPT_HTTPHEADER => array('Content-Type: text/plain'), ); curl_setopt_array($ch, $options); $result = curl_exec($ch); echo $result;