mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-08-30 12:45:32 +08:00
改进主从读取
This commit is contained in:
@@ -183,7 +183,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
* @param bool $master 是否从主库读取
|
||||
* @return void
|
||||
*/
|
||||
public function readMaster($master)
|
||||
public function readMaster($master = true)
|
||||
{
|
||||
if ($master) {
|
||||
static::$readMaster[$this->class] = true;
|
||||
|
||||
Reference in New Issue
Block a user