Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
LC_api_news
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
12f4aeec
authored
Nov 27, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加类型设置
parent
ede15da2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
app/Services/CaseService.php
config/config.php
app/Services/CaseService.php
View file @
12f4aeec
...
...
@@ -11,7 +11,7 @@ class CaseService extends BaseService
public
function
getCaseList
(
$page
,
$pageSize
)
{
//因为是获取案例,所以要指定一个ID类型
$caseTypeId
=
10
;
$caseTypeId
=
config
(
'config.case_type_id'
)
;
$map
=
[
'top_type_id'
=>
$caseTypeId
];
$model
=
new
ArticleModel
();
$list
=
$model
->
getCaseList
(
$map
,
$page
,
$pageSize
);
...
...
config/config.php
View file @
12f4aeec
...
...
@@ -15,4 +15,5 @@ return [
],
'faq_type_id'
=>
10
,
'notice_type_id'
=>
10
,
'case_type_id'
=>
10
,
];
\ No newline at end of file
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