切换导航条
此项目
正在载入...
登录
何书鹏
/
anttest
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
Karson
5 years ago
提交
3157f3a5747cba14602632fbec083f8acf5beb80
1 个父辈
5cb74b5e
优化关联查询时模型表名读取
优化插件配置数据过滤
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
4 行增加
和
3 行删除
application/admin/controller/Addon.php
application/admin/controller/general/Config.php
application/common/controller/Backend.php
application/admin/controller/Addon.php
查看文件 @
3157f3a
...
...
@@ -61,7 +61,7 @@ class Addon extends Backend
$this
->
error
(
__
(
'No Results were found'
));
}
if
(
$this
->
request
->
isPost
())
{
$params
=
$this
->
request
->
post
(
"row/a"
);
$params
=
$this
->
request
->
post
(
"row/a"
,
[],
'trim'
);
if
(
$params
)
{
foreach
(
$config
as
$k
=>
&
$v
)
{
if
(
isset
(
$params
[
$v
[
'name'
]]))
{
...
...
application/admin/controller/general/Config.php
查看文件 @
3157f3a
...
...
@@ -74,7 +74,7 @@ class Config extends Backend
{
if
(
$this
->
request
->
isPost
())
{
$this
->
token
();
$params
=
$this
->
request
->
post
(
"row/a"
);
$params
=
$this
->
request
->
post
(
"row/a"
,
[],
'trim'
);
if
(
$params
)
{
foreach
(
$params
as
$k
=>
&
$v
)
{
$v
=
is_array
(
$v
)
?
implode
(
','
,
$v
)
:
$v
;
...
...
@@ -113,7 +113,7 @@ class Config extends Backend
{
if
(
$this
->
request
->
isPost
())
{
$this
->
token
();
$row
=
$this
->
request
->
post
(
"row/a"
);
$row
=
$this
->
request
->
post
(
"row/a"
,
[],
'trim'
);
if
(
$row
)
{
$configList
=
[];
foreach
(
$this
->
model
->
all
()
as
$v
)
{
...
...
application/common/controller/Backend.php
查看文件 @
3157f3a
...
...
@@ -267,6 +267,7 @@ class Backend extends Controller
if
(
$relationSearch
)
{
if
(
!
empty
(
$this
->
model
))
{
$name
=
\think\Loader
::
parseName
(
basename
(
str_replace
(
'\\'
,
'/'
,
get_class
(
$this
->
model
))));
$name
=
$this
->
model
->
getTable
();
$tableName
=
$name
.
'.'
;
}
$sortArr
=
explode
(
','
,
$sort
);
...
...
请
注册
或
登录
后发表评论