改名
This commit is contained in:
+5
-8
@@ -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 [];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user