|
@@ -103,7 +103,7 @@ class Cabinet extends Base
|
|
|
json_error(2000);
|
|
|
} else {
|
|
|
$this->action_log();
|
|
|
- json_success($result);
|
|
|
+ json_success($result['data']);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -128,7 +128,8 @@ class Cabinet extends Base
|
|
|
if($result == false) {
|
|
|
json_error(2000);
|
|
|
} else {
|
|
|
- json_success($result);
|
|
|
+ $this->action_log();
|
|
|
+ json_success($result['data']);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -153,13 +154,14 @@ class Cabinet extends Base
|
|
|
if($result == false) {
|
|
|
json_error(2000);
|
|
|
} else {
|
|
|
- json_success($result);
|
|
|
+ $this->action_log();
|
|
|
+ json_success($result['data']);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public function Reboot()
|
|
|
{
|
|
|
- $params['id'] = $this->getid();
|
|
|
+ $params['id'] = $this->getid();
|
|
|
$cabinet_code = input('param.cabinet_number');
|
|
|
$params['delay_time'] = 0;
|
|
|
|
|
@@ -178,7 +180,8 @@ class Cabinet extends Base
|
|
|
if($result == false) {
|
|
|
json_error(2000);
|
|
|
} else {
|
|
|
- json_success($result);
|
|
|
+ $this->action_log();
|
|
|
+ json_success($result['data']);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -203,7 +206,8 @@ class Cabinet extends Base
|
|
|
if($result == false) {
|
|
|
json_error(2000);
|
|
|
} else {
|
|
|
- json_success($result);
|
|
|
+ $this->action_log();
|
|
|
+ json_success($result['data']);
|
|
|
}
|
|
|
}
|
|
|
|