fixed 代码生成预览bug

This commit is contained in:
JaguarJack
2021-06-18 16:50:16 +08:00
parent d53e8c46af
commit 99e53be3e4
2 changed files with 10 additions and 40 deletions

View File

@@ -92,9 +92,7 @@ class Generator
*/
public function preview($params)
{
$params = \json_decode($params['data'], true);
[$controller, $model] = $this->parseParams($params);
[$controller, $model] = $this->parseParams(\json_decode($params['data'], true));
switch ($params['type']) {
case 'controller':