WqUniSetting.php 486 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: weifeng
  5. * Date: 2019-10-21
  6. * Time: 15:04
  7. */
  8. namespace app\common\modules\site;
  9. class WqUniSetting
  10. {
  11. private $wqUniSettingModel;
  12. public function __construct()
  13. {
  14. $this->wqUniSettingModel = \app\common\models\WqUniSetting::uniacid()->get();
  15. }
  16. public function getSetting()
  17. {
  18. return $this->wqUniSettingModel;
  19. }
  20. public function get()
  21. {
  22. return $this->getSetting()->first();
  23. }
  24. }