WechatPlatformConstService.php 807 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace Modules\WechatPlatform\Services;
  3. class WechatPlatformConstService
  4. {
  5. /**
  6. * 客服消息状态:待发送
  7. */
  8. public const KF_MESSAGE_STATUS_PRE_SEND=1;
  9. /**
  10. * 客服消息状态:发送中
  11. */
  12. public const KF_MESSAGE_STATUS_SENDING=2;
  13. /**
  14. * 客服消息状态:发送完成
  15. */
  16. public const KF_MESSAGE_STATUS_FINISH=3;
  17. /**
  18. * 客服消息状态:已停止
  19. */
  20. public const KF_MESSAGE_STATUS_STOP=4;
  21. /**
  22. * 客服消息状态-映射表
  23. */
  24. public const KF_MESSAGE_STATUS_MAPPER = [
  25. '1' => '待发送', '2' => '发送中', '3' => '发送完毕', '4' => '已停止'
  26. ];
  27. /**
  28. * 客服消息类型:纯文本
  29. */
  30. public const KF_MESSAGE_TYPE_MAPPER = [
  31. '1' => '纯文本'
  32. ];
  33. }