fcy 4 年之前
父节点
当前提交
512c6cb092
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. 8 8
      application/web/controller/IndexController.php

+ 8 - 8
application/web/controller/IndexController.php

@@ -223,16 +223,16 @@ class IndexController extends MainController
      * */
     public function deviceedit(){
         $ID = $this->request->param('ID');
-        $data['DEVICEID']='';
-		$data['DEVICENAME']='';
-		$data['TEMPERTHRESHOLD']='';
-		$data['CELLNAME']='';
-		$data['POWERDISCABVOLUME']='';
-		$data['TEMPERPATCHNUM']='';
-		$data['POWERDISCABNAME']='';
+        $deviceedit['DEVICEID']='';
+		$deviceedit['DEVICENAME']='';
+		$deviceedit['TEMPERTHRESHOLD']='';
+		$deviceedit['CELLNAME']='';
+		$deviceedit['POWERDISCABVOLUME']='';
+		$deviceedit['TEMPERPATCHNUM']='';
+		$deviceedit['POWERDISCABNAME']='';
 
         if ($ID) {
-            $edit = Db::name('deviceinfo')->where([['ID','=',$ID]])->find();
+            $deviceedit = Db::name('deviceinfo')->where([['ID','=',$ID]])->find();
         }
         $this->api_return_json(compact('deviceedit'), 1);
     }