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
d64894e9
Commit
d64894e9
authored
Aug 01, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商学院附件读取字段
parent
bf2d59b4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
1 deletion
+2
-1
.DS_Store
.DS_Store
+0
-0
News.php
application/index/controller/News.php
+1
-1
SNews.php
application/model/SNews.php
+1
-0
.DS_Store
public/.DS_Store
+0
-0
.DS_Store
public/resource/.DS_Store
+0
-0
No files found.
.DS_Store
View file @
d64894e9
No preview for this file type
application/index/controller/News.php
View file @
d64894e9
...
@@ -121,7 +121,7 @@ class News extends Basic
...
@@ -121,7 +121,7 @@ class News extends Basic
if
(
empty
(
$this
->
params
[
'id'
]))
{
if
(
empty
(
$this
->
params
[
'id'
]))
{
return
$this
->
response
(
101
,
"Id is null."
);
return
$this
->
response
(
101
,
"Id is null."
);
}
}
$field
=
'id,title,s_label_id,cover_plan,content'
;
$field
=
'id,title,s_label_id,cover_plan,content
,annex_file_name
'
;
$where
[
'status'
]
=
0
;
$where
[
'status'
]
=
0
;
$where
[
'id'
]
=
$this
->
params
[
'id'
];
$where
[
'id'
]
=
$this
->
params
[
'id'
];
$data
=
$this
->
m_news
->
getNewsInfo
(
$field
,
$where
);
$data
=
$this
->
m_news
->
getNewsInfo
(
$field
,
$where
);
...
...
application/model/SNews.php
View file @
d64894e9
...
@@ -77,6 +77,7 @@ class SNews extends BaseModel
...
@@ -77,6 +77,7 @@ class SNews extends BaseModel
->
find
();
->
find
();
$data
[
'cover_plan'
]
=
CK_IMG_URL
.
'images/'
.
$data
[
'cover_plan'
];
$data
[
'cover_plan'
]
=
CK_IMG_URL
.
'images/'
.
$data
[
'cover_plan'
];
$data
[
'annex_file_path'
]
=
CURRENT_URL
.
'static/business_school_file/'
.
$data
[
'annex_file_name'
];
return
$data
;
return
$data
;
}
}
...
...
public/.DS_Store
View file @
d64894e9
No preview for this file type
public/resource/.DS_Store
0 → 100644
View file @
d64894e9
File added
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