Basics.php 426 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace app\common\service;
  3. class Basics
  4. {
  5. // 错误信息
  6. protected $error;
  7. // 当前小程序id
  8. protected $wxappId;
  9. /**
  10. * 获取错误信息
  11. * @return mixed
  12. */
  13. public function getError()
  14. {
  15. return $this->error;
  16. }
  17. /**
  18. * 是否存在错误
  19. * @return bool
  20. */
  21. public function hasError()
  22. {
  23. return !empty($this->error);
  24. }
  25. }