<?php declare (strict_types = 1); namespace app\txx\model; use think\Model; /** * @mixin \think\Model */ class YzGood extends Model { protected $connection = 'mysql_yz';//切换连接参数 protected $table = 'yz_good'; protected $pk = 'id'; protected $autoWriteTimestamp = false; }