MemberRegisterChannelDict.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Niucloud-admin 企业快速开发的saas管理平台
  4. // +----------------------------------------------------------------------
  5. // | 官方网址:https://www.niucloud.com
  6. // +----------------------------------------------------------------------
  7. // | niucloud团队 版权所有 开源版本可自由商用
  8. // +----------------------------------------------------------------------
  9. // | Author: Niucloud Team
  10. // +----------------------------------------------------------------------
  11. namespace app\dict\member;
  12. use app\dict\common\ChannelDict;
  13. /**
  14. * 会员注册渠道枚举类
  15. * Class MemberRegisterChannelDict
  16. */
  17. class MemberRegisterChannelDict extends ChannelDict
  18. {
  19. //手动添加
  20. const MANUAL = 'manual';
  21. public static function getType($type = '')
  22. {
  23. $data = ChannelDict::getType($type);
  24. $data[self::MANUAL] = get_lang('dict_member.register_manual');//手动添加
  25. if (empty($type)) {
  26. return $data;
  27. }
  28. return $data[$type] ?? '';
  29. }
  30. }