Node.php 412 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace Manage\Src;
  3. use Dever;
  4. class Node
  5. {
  6. # 测试plugin
  7. public function get_api($call, $id)
  8. {
  9. return $call . '_' . $id;
  10. }
  11. public function update()
  12. {
  13. $data = $this->load();
  14. foreach ($data as $k => $v) {
  15. $this->push($v);
  16. }
  17. Dever::out('yes');
  18. }
  19. private function push()
  20. {
  21. }
  22. private function load()
  23. {
  24. $path = DEVER_PATH . 'data/node/';
  25. return scandir($path);
  26. }
  27. }