|
@@ -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);
|
|
|
}
|