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.

28 lines
717 B

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