Setting.php 392 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace app\api\model\sharp;
  3. use app\common\model\sharp\Setting as SettingModel;
  4. /**
  5. * 整点秒杀设置模型
  6. * Class Setting
  7. * @package app\api\model\sharp
  8. */
  9. class Setting extends SettingModel
  10. {
  11. /**
  12. * 获取是否开启分销
  13. * @return array
  14. */
  15. public static function getIsDealer()
  16. {
  17. return static::getItem('basic')['is_dealer'];
  18. }
  19. }