切换导航条
此项目
正在载入...
登录
何书鹏
/
salarycalculator
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
Chrisleung
6 years ago
提交者
Karson
6 years ago
提交
7618ad7dd85cc8b149add8a3464aa837713335da
2 个父辈
41ae511d
6facfcf8
!113 修复当表字段注释为空时,生成的语言文件格式错误
Merge pull request !113 from Chrisleung/master
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
2 行增加
和
4 行删除
application/admin/command/Crud.php
application/admin/command/Crud.php
查看文件 @
7618ad7
...
...
@@ -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
()
.
"
\n
Line: "
.
$e
->
getLine
()
.
"
\n
Message: "
.
$e
->
getMessage
()
.
"
\n
File: "
.
$e
->
getFile
());
}
...
...
请
注册
或
登录
后发表评论