宝体数据调用接口
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.
 
 
 
 
 
 

28 lines
727 B

<?php
namespace app\api\controller\library;
use app\api\controller\Controller;
class Pass extends Controller
{
/**
* 图书管数据接口
* @return array
* 返回数据:today.incount=今天进 month.incount=本月进 year.incount=今年进 day30.incount=近30天近 outcount=出
* 不传参数就是所有摄像头,传cameraid就是按传的摄像头ID
* cameraid = 宝安图书馆9,7,6,4,2,1,67,3 1990分馆134、 135
*/
public function allFlowTrends()
{
$url = 'http://balib.cn:8999/CustCount/baoan/stat.json?key=baoan';
$result = curlPost($url);
$data = json_decode($result,true);
return $this->renderSuccess(compact('data'));
}
}