发票管理apiadmin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

13 lines
476 B

<?php
// 发票系统-获取结报数据保存 每小时一次
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://ljclf.dgyq-water.com/task/InvoiceIssuanceTask/runSummaryReport');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
// 可以记录日志
$date = date("H");
$arr = ['08','12','16','20'];
if (in_array($date, $arr)) {
file_put_contents('api_log_final.txt', date('Y-m-d H:i:s')." - API called\n", FILE_APPEND);
}