Browse Source

借阅,办证

master
wanghongjun 3 years ago
parent
commit
340ea0ad95
  1. 19
      source/application/api/controller/library/Pass.php

19
source/application/api/controller/library/Pass.php

@ -6,6 +6,8 @@ use app\api\controller\Controller;
class Pass extends Controller
{
protected $url = 'http://balib.cn:8999';
/**
* 图书管数据接口
* @return array
@ -25,4 +27,21 @@ class Pass extends Controller
return $this->renderSuccess(compact('data'));
}
/**
* 借阅,办证
* 分馆年借还,今日借、还,今日办证
* @return array
*/
public function getLibraryService()
{
$library = $this->request->param('library') ?: '044007';
$url = $this->url . "/SSBusiness/monitor/getLibraryService?library={$library}";
$result = curlPost($url);
$data = json_decode($result,true);
return $this->renderSuccess(compact('data'));
}
}
Loading…
Cancel
Save