* * 站点配置 */ namespace app\common\model; use think\Model; class SystemWeb extends Model { protected $pk = 'id'; /** * 读取站点配置 */ public static function config(){ return self::where(['id' => 1])->find(); } }