OfficialAccount.php 640 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: lts
  5. * Date: 21/9/18
  6. * Time: 下午2:06
  7. */
  8. namespace app\common\constants;
  9. class OfficialAccount
  10. {
  11. #region 公众号类型
  12. /**
  13. * 服务号
  14. */
  15. const OFFICIAL_ACCOUNT_TYPE_SERVICE = 0;
  16. /**
  17. * 订阅号
  18. */
  19. const OFFICIAL_ACCOUNT_TYPE_SUBSCRIPTION = 1;
  20. #endregion
  21. const officialAccountTypes = [self::OFFICIAL_ACCOUNT_TYPE_SERVICE, self::OFFICIAL_ACCOUNT_TYPE_SUBSCRIPTION];
  22. const officialAccountTypeNames = [
  23. self::OFFICIAL_ACCOUNT_TYPE_SERVICE => '服务号',
  24. self::OFFICIAL_ACCOUNT_TYPE_SUBSCRIPTION => '订阅号',
  25. ];
  26. }