This commit is contained in:
as2252258@163.com
2021-08-11 01:04:57 +08:00
parent 63d8eaa4a5
commit 682246df28
219 changed files with 790 additions and 791 deletions
+6 -6
View File
@@ -12,10 +12,10 @@ namespace Gii;
use Database\Connection;
use Database\Db;
use Exception;
use Snowflake\Abstracts\Input;
use Snowflake\Exception\ComponentException;
use Snowflake\Exception\ConfigException;
use Snowflake\Snowflake;
use Kiri\Abstracts\Input;
use Kiri\Exception\ComponentException;
use Kiri\Exception\ConfigException;
use Kiri\Kiri;
/**
* Class gii
@@ -123,7 +123,7 @@ class Gii
return $this->makeByDatabases($make, $input);
}
$db = $this->input->get('databases', 'db');
$this->db = Snowflake::app()->db->get($db);
$this->db = Kiri::app()->db->get($db);
return $this->makeByDatabases($make, $input);
}
@@ -138,7 +138,7 @@ class Gii
*/
private function makeByDatabases($make, $input): array
{
$redis = Snowflake::app()->getRedis();
$redis = Kiri::app()->getRedis();
if (!empty($input->get('name'))) {
$this->tableName = $input->get('name');
$redis->del('column:' . $this->tableName);