Module.php 592 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace app\utils\JingXiu;
  3. use app\utils\CurlUtil;
  4. class Module
  5. {
  6. protected $message = '';
  7. protected $data = [];
  8. protected function success($message = '', $data = [])
  9. {
  10. $this->message = $message;
  11. $this->data = $data;
  12. return true;
  13. }
  14. protected function error($message = '', $data = [])
  15. {
  16. $this->message = $message;
  17. $this->data = $data;
  18. return false;
  19. }
  20. public function getMessage()
  21. {
  22. return $this->message;
  23. }
  24. public function getData()
  25. {
  26. return $this->data;
  27. }
  28. }