Hkws.php 591 字节
<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use think\Lang;
use isc\Api;
use think\Db;
/**
 * Ajax异步请求接口
 * @internal
 */
class Hkws extends Frontend
{

    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];
    protected $layout = '';
    public function checkCameraStatus(){
        $api = new Api;
        $list = Db::name('reservoir_hkws_hardware')->field('id,indexCode')->select();
        foreach ($list as $k => $v){
            $res = $api->ezvizSafeWatchKey($v['indexCode']);
            var_dump($res);
        }
    }
}