瀏覽代碼

修改监控

hzd 1 年之前
父節點
當前提交
1a8aa87b86
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      application/admin/view/index/index.html
  2. 1 1
      application/api/controller/ue/Energy.php

+ 1 - 1
application/admin/view/index/index.html

@@ -492,7 +492,7 @@
                                 </a>
                             </div>
                             <div class="col-xs-12" style="padding: 0 5px!important;">
-                                <a href="http://gyjk.jya-tech.com/admin/camera/index.html" target="_blank">
+                                <a href="/admin/camera/index.html" target="_blank">
                                     <div class="tj-info2">
                                         视频监控
                                     </div>

+ 1 - 1
application/api/controller/ue/Energy.php

@@ -320,7 +320,7 @@ class Energy extends Base {
 
     // 监控
     public function monitor(){
-        $lists = Db::name('energy_monitor')->where('org_id',$this->orgId)->where('del',0)->field('id,title,ueid')->select();
+        $lists = Db::name('monitor')->where('org_id',$this->orgId)->where('del',0)->field('id,title,ueid')->select();
         foreach ($lists as $k=>$v){
             $lists[$k]['url'] = url('h5/Index/monitor',['id'=>think_encrypt($v['id'])],false,true);
         }