From 6facfcf8942432902177598c6ea490cb73cf921e Mon Sep 17 00:00:00 2001 From: Chrisleung Date: Sun, 24 Mar 2019 09:52:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BD=93=E8=A1=A8=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=B3=A8=E9=87=8A=E4=B8=BA=E7=A9=BA=E6=97=B6,?= =?UTF-8?q?=E7=94=9F=E6=88=90=E7=9A=84=E8=AF=AD=E8=A8=80=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/command/Crud.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/application/admin/command/Crud.php b/application/admin/command/Crud.php index 8eed5788b..1664f55ce 100755 --- a/application/admin/command/Crud.php +++ b/application/admin/command/Crud.php @@ -807,7 +807,7 @@ class Crud extends Command } } unset($line); - $langList = implode(",\n", array_filter($langList)) . ","; + $langList = implode(",\n", array_filter($langList)); //表注释 $tableComment = $modelTableInfo['Comment']; @@ -934,9 +934,7 @@ class Crud extends Command // 生成JS文件 $this->writeToFile('javascript', $data, $javascriptFile); // 生成语言文件 - if ($langList) { - $this->writeToFile('lang', $data, $langFile); - } + $this->writeToFile('lang', $data, $langFile); } catch (ErrorException $e) { throw new Exception("Code: " . $e->getCode() . "\nLine: " . $e->getLine() . "\nMessage: " . $e->getMessage() . "\nFile: " . $e->getFile()); } -- Gitee