You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
781 B

5 years ago
  1. <?php
  2. namespace App\Service\v3\Interfaces;
  3. interface MqttServiceInterface
  4. {
  5. /**
  6. * 发布给商户
  7. * @param $orderId
  8. * @param bool $isMain
  9. * @return mixed
  10. */
  11. public function speakToStore($orderId, $isMain = true);
  12. /**
  13. * @param string|number $message 消息内容
  14. * @param string $topic 发布消息到主题,主题名
  15. * @param string $type 消息类型,cash或tts
  16. * @param string $payId 支付方式,如“支付宝”、“微信”等
  17. * @param string $toClientId 终端id,如IMEI码
  18. * @param string $curClientId 当前客户端id
  19. */
  20. public function publish(
  21. $message,
  22. $topic,
  23. $toClientId = '',
  24. $type = '',
  25. $payId = '',
  26. $curClientId = ''
  27. );
  28. }