Execution Check
This commit is contained in:
@@ -14,4 +14,17 @@ class WidgetApi extends ApiController{
|
||||
|
||||
$this->response(['value' => $response]);
|
||||
}
|
||||
|
||||
public function check($subDeviceId){
|
||||
//$this->requireAuth();
|
||||
$response = null;
|
||||
$lastRecord = RecordManager::getLastRecord($subDeviceId);
|
||||
|
||||
$response = [
|
||||
'executet' => $lastRecord['execuded'],
|
||||
'value' => $lastRecord['value'],
|
||||
];
|
||||
|
||||
$this->response($response);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user