Credential.php 482 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace ThirdParty\Urs\Dto;
  3. /**
  4. * 通讯密钥
  5. */
  6. class Credential extends \App\Module\ThirdParty\Dto\Credential
  7. {
  8. /**
  9. * 请求密钥
  10. *
  11. * @var string $apiKey
  12. */
  13. public $apiKey;
  14. /**
  15. * 生态ID
  16. *
  17. * @var int $ecologyId
  18. */
  19. public $ecologyId;
  20. public function getApiKey()
  21. {
  22. return $this->apiKey ?? "";
  23. }
  24. public function getEcologyId()
  25. {
  26. return $this->ecologyId ?? "1";
  27. }
  28. }