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
434ba9a7
Commit
434ba9a7
authored
Dec 13, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
系统设置
parent
fd2d929c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
16 deletions
+23
-16
Setting.php
application/index/controller/Setting.php
+22
-15
route.php
application/route.php
+1
-1
No files found.
application/index/controller/Setting.php
View file @
434ba9a7
...
@@ -185,30 +185,36 @@ class Setting extends Basic
...
@@ -185,30 +185,36 @@ class Setting extends Basic
try
{
try
{
$code
=
200
;
$code
=
200
;
$msg
=
''
;
$msg
=
''
;
$data
=
[];
$where
[
'params'
]
=
'week_competition_'
.
$this
->
params
[
'site_id'
];
$where
[
'params'
]
=
'week_competition_'
.
$this
->
params
[
'site_id'
];
$id
=
$this
->
m_config
->
getSettingV2
(
$where
,
'id'
);
$id
=
$this
->
m_config
->
getSettingV2
(
$where
,
'id,rule'
);
$rule
[
'total_date_start'
]
=
$this
->
params
[
'total_date_start'
];
if
(
$this
->
request
->
isPost
())
{
$rule
[
'total_date_end'
]
=
$this
->
params
[
'total_date_end'
];
$rule
[
'total_date_start'
]
=
$this
->
params
[
'total_date_start'
];
$rule
[
'sort_date_start'
]
=
$this
->
params
[
'sort_date_start'
];
$rule
[
'total_date_end'
]
=
$this
->
params
[
'total_date_end'
];
$rule
[
'sort_date_end'
]
=
$this
->
params
[
'sort_date_end'
];
$rule
[
'sort_date_start'
]
=
$this
->
params
[
'sort_date_start'
];
$save_data
[
0
]
=
[
$rule
[
'sort_date_end'
]
=
$this
->
params
[
'sort_date_end'
];
'rule'
=>
json_encode
(
$rule
),
$save_data
[
0
]
=
[
'params'
=>
$where
[
'params'
]
'rule'
=>
json_encode
(
$rule
),
];
'params'
=>
$where
[
'params'
]
if
(
empty
(
$id
[
0
]))
{
];
$this
->
m_config
->
insertSetting
(
$save_data
);
if
(
empty
(
$id
[
0
]))
{
$this
->
m_config
->
insertSetting
(
$save_data
);
}
else
{
$save_data
[
0
][
'id'
]
=
$id
[
0
][
'id'
];
$this
->
m_config
->
saveDataAll
(
$save_data
);
}
}
else
{
}
else
{
$save_data
[
0
][
'id'
]
=
$id
[
0
][
'id'
];
$data
=
$id
[
0
][
'rule'
];
$this
->
m_config
->
saveDataAll
(
$save_data
);
}
}
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
$msg
=
'内部错误:'
.
$e
->
getMessage
();
$msg
=
'内部错误:'
.
$e
->
getMessage
();
$code
=
101
;
$code
=
101
;
}
}
return
$this
->
response
(
$code
,
$msg
);
return
$this
->
response
(
$code
,
$msg
,
$data
);
}
}
}
}
\ No newline at end of file
application/route.php
View file @
434ba9a7
...
@@ -215,7 +215,7 @@ Route::group('index', [
...
@@ -215,7 +215,7 @@ Route::group('index', [
'select_by_phone'
=>
[
'index/remark/select_by_phone'
,
[
'method'
=>
'get|post'
]],
//后台客户详情--客方搜索
'select_by_phone'
=>
[
'index/remark/select_by_phone'
,
[
'method'
=>
'get|post'
]],
//后台客户详情--客方搜索
'getSetting'
=>
[
'index/Setting/getSettingV2'
,
[
'method'
=>
'get|post'
]],
//新增和修改全局参数设置
'getSetting'
=>
[
'index/Setting/getSettingV2'
,
[
'method'
=>
'get|post'
]],
//新增和修改全局参数设置
'configWeek'
=>
[
'index/Setting/configWeek'
,
[
'method'
=>
'post'
]],
//周竞赛时间存储
'configWeek'
=>
[
'index/Setting/configWeek'
,
[
'method'
=>
'
get
post'
]],
//周竞赛时间存储
'getMenu'
=>
[
'index/Auth/getMenu'
,
[
'method'
=>
'get|post'
]],
//新增和修改全局参数设置
'getMenu'
=>
[
'index/Auth/getMenu'
,
[
'method'
=>
'get|post'
]],
//新增和修改全局参数设置
'reportListOne/:check_status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
],
[
'check_status'
=>
1
]],
//财务 成交报告-未结单-第一级审核
'reportListOne/:check_status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
],
[
'check_status'
=>
1
]],
//财务 成交报告-未结单-第一级审核
'reportListTwo/:check_status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
],
[
'check_status'
=>
2
]],
//财务 成交报告-未结单-第二级审核
'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