示例#1
0
 /**
  * [deleteInstallRecord 删除包安装记录]
  * @return [type] [description]
  */
 public function deleteInstallRecord()
 {
     $this->log('START FUNCTION ' . __FUNCTION__);
     $errorArray = array('error' => '');
     $data = Flight::request()->data->getData();
     $needPara = array('ipList', 'packagePath', 'installPath');
     $error = $this->checkParameter($needPara, $data);
     $instance = new Instance();
     $result = $instance->updateStatus($data['ipList'], $data['packagePath'], $data['installPath'], 100);
     if ($result != true) {
         $errorArray['error'] = '删除记录出错';
         Flight::json($errorArray, 400);
     }
     Flight::json($errorArray, 200);
 }