您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

DummyCommand.php 438B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: robin
  5. * Date: 11/24/15
  6. * Time: 12:15 AM
  7. */
  8. namespace App\Http\Business\Commands;
  9. class DummyCommand extends AbstractCommand
  10. {
  11. /**
  12. * @return bool
  13. */
  14. public function exec()
  15. {
  16. $data = $this->_command->getData();
  17. if (isset($data["Success"]) && !$data["Success"]) {
  18. abort(500, "Failed to execute command");
  19. }
  20. return true;
  21. }
  22. }