This commit is contained in:
2020-09-03 11:39:20 +08:00
parent 274332207b
commit efbb049824
42 changed files with 101 additions and 101 deletions
+2 -2
View File
@@ -123,7 +123,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, \ArrayAccess
*/
public function getLastError()
{
return Snowflake::get()->getLogger()->getLastError('mysql');
return Snowflake::app()->getLogger()->getLastError('mysql');
}
/**
@@ -768,7 +768,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, \ArrayAccess
*/
public static function setDatabaseConnect($bsName)
{
return Snowflake::get()->db->get($bsName);
return Snowflake::app()->db->get($bsName);
}
/**