ConfigWeb.php 482 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2017 https://www.sapixx.com All rights reserved.
  4. * @license Licensed (http://www.apache.org/licenses/LICENSE-2.0).
  5. * @author pillar<ltmn@qq.com>
  6. *
  7. * 站点配置 Table<ai_config_web>
  8. */
  9. namespace app\common\model;
  10. use think\Model;
  11. class ConfigWeb extends Model
  12. {
  13. protected $pk = 'id';
  14. /**
  15. * 读取站点配置
  16. */
  17. public static function config(){
  18. return self::where(['id' => 1])->find();
  19. }
  20. }