1 changed files with 28 additions and 0 deletions
@ -0,0 +1,28 @@ |
|||||
|
<?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 dataStatistics() |
||||
|
{ |
||||
|
|
||||
|
$url = 'http://balib.cn:8999/CustCount/baoan/stat.json?key=baoan'; |
||||
|
|
||||
|
|
||||
|
$result = curlPost($url); |
||||
|
$data = json_decode($result,true); |
||||
|
|
||||
|
return $this->renderSuccess(compact('data')); |
||||
|
} |
||||
|
|
||||
|
} |
||||
Loading…
Reference in new issue