Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
9e874beb
Commit
9e874beb
authored
Dec 13, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
系统设置
parent
af799400
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
1 deletion
+42
-1
Setting.php
application/index/controller/Setting.php
+41
-0
route.php
application/route.php
+1
-1
No files found.
application/index/controller/Setting.php
View file @
9e874beb
...
...
@@ -97,4 +97,44 @@ class Setting extends Basic
return
view
(
'setting/index'
);
}
}
/**
* 系统设置
*
* @return \think\Response|\think\response\View
*/
public
function
getSettingV2
()
{
if
(
!
$this
->
request
->
isAjax
())
{
return
view
(
'setting/index'
);
}
$data
=
[];
$msg
=
""
;
try
{
$config
=
new
SystemConfig
();
if
(
$this
->
request
->
isGet
())
{
//获取数据
$data
=
$config
->
getSetting
();
}
else
{
$config_name_arr
=
json_decode
(
$this
->
params
[
'config_name'
],
true
);
foreach
(
$config_name_arr
as
$k
=>
$v
)
{
if
(
empty
(
$v
[
'id'
]))
{
$save_data
[
$k
][
'id'
]
=
$v
[
'id'
];
}
$save_data
[
$k
][
'config_name'
]
=
$v
[
'name'
];
$save_data
[
$k
][
'rule'
]
=
json_encode
([
'rule'
]);
$save_data
[
$k
][
'config_type'
]
=
$v
[
'config_type'
];
$save_data
[
$k
][
'agent_id'
]
=
$v
[
'agent_id'
];
}
if
(
!
empty
(
$save_data
))
{
$config
->
saveAll
(
$save_data
);
}
}
}
catch
(
\Exception
$e
)
{
$msg
=
'内部错误:'
.
$e
->
getMessage
();
}
return
$this
->
response
(
200
,
$msg
,
$data
);
}
}
\ No newline at end of file
application/route.php
View file @
9e874beb
...
...
@@ -214,7 +214,7 @@ Route::group('index', [
'useraction_search'
=>
[
'index/remark/useraction_search'
,
[
'method'
=>
'get|post'
]],
//后台客户详情
'select_by_phone'
=>
[
'index/remark/select_by_phone'
,
[
'method'
=>
'get|post'
]],
//后台客户详情--客方搜索
'getSetting'
=>
[
'index/Setting/getSetting'
,
[
'method'
=>
'get|post'
]],
//新增和修改全局参数设置
'getSetting'
=>
[
'index/Setting/getSetting
V2
'
,
[
'method'
=>
'get|post'
]],
//新增和修改全局参数设置
'getMenu'
=>
[
'index/Auth/getMenu'
,
[
'method'
=>
'get|post'
]],
//新增和修改全局参数设置
'reportListOne/:check_status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
],
[
'check_status'
=>
1
]],
//财务 成交报告-未结单-第一级审核
'reportListTwo/:check_status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
],
[
'check_status'
=>
2
]],
//财务 成交报告-未结单-第二级审核
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment