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
6b5e5817
Commit
6b5e5817
authored
Jul 03, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改后台商学院接口
parent
b857f5d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
SNews.php
application/model/SNews.php
+5
-1
route.php
application/route.php
+2
-1
No files found.
application/model/SNews.php
View file @
6b5e5817
...
...
@@ -64,9 +64,12 @@ class SNews extends BaseModel
*/
public
function
getNewsInfo
(
$field
=
''
,
$params
=
''
,
$order
=
'id ASC'
)
{
return
$this
->
field
(
$field
)
$data
=
$this
->
field
(
$field
)
->
where
(
$params
)
->
order
(
$order
)
->
find
();
$data
[
'cover_plan'
]
=
CURRENT_URL
.
'static/business_school/'
.
$data
[
'cover_plan'
];
return
$data
;
}
}
\ No newline at end of file
application/route.php
View file @
6b5e5817
...
...
@@ -249,7 +249,8 @@ Route::group('index', [
'business_school'
=>
[
'index/news/index'
,
[
'method'
=>
'GET'
]
],
//商学院资讯列表
'addNews'
=>
[
'index/news/addNews'
,
[
'method'
=>
'POST'
]
],
//新增商学院资讯
'getNewsInfo'
=>
[
'index/news/getNewsInfo'
,
[
'method'
=>
'GET'
]
],
//商学院资讯详情
'getNewsLabel'
=>
[
'index/news/getNewsLabel'
,
[
'method'
=>
'GET'
]
],
//商学院资标签
'getNewsLabel'
=>
[
'index/news/getNewsLabel'
,
[
'method'
=>
'GET'
]
],
//商学院资标签
'delNews'
=>
[
'index/news/delNews'
,
[
'method'
=>
'POST'
]
],
//删除商学院文章
]);
...
...
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