ShopApplyDict.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace app\dict\shop;
  3. /**
  4. * 店铺入驻申请
  5. * Class ShopApplyDict
  6. * @package addon\mall\app\dict\shop
  7. */
  8. class ShopApplyDict
  9. {
  10. public const WAIT_AUDIT = 1;//待审核
  11. public const PASS = 2;//已通过
  12. public const REFUSE = -1;//已拒绝
  13. public const WAIT_OPEN = 1;//待开店
  14. public const OPENED = 2;//已开店
  15. /**
  16. * 入驻审核状态
  17. * @return array
  18. */
  19. public static function getStatus()
  20. {
  21. return [
  22. self::WAIT_AUDIT => get_lang('dict_site_shop_apply.status_wait_audit'),//待审核
  23. self::PASS => get_lang('dict_site_shop_apply.status_pass'),//已通过
  24. self::REFUSE => get_lang('dict_site_shop_apply.status_refuse'),//已拒绝
  25. ];
  26. }
  27. /**
  28. * 开店状态
  29. * @return array
  30. */
  31. public static function getOpenStatus()
  32. {
  33. return [
  34. self::WAIT_OPEN => get_lang('dict_site_shop_apply.status_wait_open'),//待开店
  35. self::OPENED => get_lang('dict_site_shop_apply.status_opened'),//已开店
  36. ];
  37. }
  38. }