H5config.php 615 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace app\admin\model;
  3. use support\Db;
  4. use support\Model;
  5. /**
  6. * h5设置
  7. * Class Users
  8. * @package app\admin\model
  9. */
  10. class H5Config extends Model
  11. {
  12. /**
  13. *
  14. * The table associated with the model.
  15. *
  16. * @var string
  17. */
  18. protected $table = 'h5_config';
  19. public $timestamps = false;
  20. /**
  21. * Notes:获取设置
  22. * @return array
  23. * User: YCP
  24. * Date: 2022/10/25
  25. */
  26. public static function getConfig()
  27. {
  28. $date = static::select('*')
  29. ->where('config_name','h5')
  30. ->first();
  31. return $date;
  32. }
  33. }