// 设置当前模型的数据库连接 protected $connection = []; public function __construct() { parent::__construct(); $this->connection = config("db_company"); $this->class=null; }