This commit is contained in:
2021-01-19 18:53:15 +08:00
parent 071e3d5667
commit 602bf0cf76
+5 -8
View File
@@ -119,14 +119,11 @@ class Gii
$this->tableName = $input->get('table'); $this->tableName = $input->get('table');
$redis->del('column:' . $this->tableName); $redis->del('column:' . $this->tableName);
} }
switch ($make) { return match ($make) {
case 'controller': 'controller' => $this->getTable(1, 0),
return $this->getTable(1, 0); 'model' => $this->getTable(0, 1),
case 'model': default => [],
return $this->getTable(0, 1); };
default:
return [];
}
} }