作者 郭文星

1231

@@ -33,12 +33,7 @@ class Index extends Api @@ -33,12 +33,7 @@ class Index extends Api
33 protected $swApiurl="http://121.37.218.20:9011/"; 33 protected $swApiurl="http://121.37.218.20:9011/";
34 protected $sxjApiurl="http://124.71.107.128:9040/"; 34 protected $sxjApiurl="http://124.71.107.128:9040/";
35 //前置方法 35 //前置方法
36 - public function _initialize()  
37 - {  
38 - $user=new User();  
39 - $this->token=$user->tokenLogin();  
40 - parent::_initialize();  
41 - } 36 +
42 //1.查询摄像头接口 37 //1.查询摄像头接口
43 public function getCamera(){ 38 public function getCamera(){
44 $url=$this->cameraurl."/api/reservoir/hkws/Hardware/getListByReservoir"; 39 $url=$this->cameraurl."/api/reservoir/hkws/Hardware/getListByReservoir";