Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
tmq
9 years ago
Commit
a49c95cc3e7e1a18997434dae9affe6ee0fda41d
1 parent
dec70c05
资讯包含视频
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
website/controller/News.class.php
website/controller/News.class.php
View file @
a49c95c
...
...
@@ -123,7 +123,7 @@ class Controller_News extends Controller_Abstract
$content
=
$this
->
_request
->
content
;
$pics
=
$this
->
_request
->
pics
;
$thumb
=
$this
->
_request
->
thumb
;
$is_video
=
$this
->
_request
->
is_video
;
$is_video
=
$this
->
_request
->
is_video
?
1
:
0
;
if
(
empty
(
$title
)
||
empty
(
$content
)
||
empty
(
$thumb
))
{
return
$this
->
returnJson
(
false
,
403
,
''
,
'参数不能为空'
);
...
...
@@ -158,7 +158,7 @@ EOT;
$content .= '<br/>'.$html;
}*/
$data
=
array
(
'title'
=>
$title
,
'content'
=>
$content
,
'pics'
=>
implode
(
'|'
,
$pics
),
'tag'
=>
$tag
,
'thumb'
=>
$thumb
,
'thumb_size'
=>
$thumb_size
);
'thumb'
=>
$thumb
,
'thumb_size'
=>
$thumb_size
,
'is_video'
=>
$is_video
);
//新建
$id
=
Facade_News
::
setInfo
(
$data
);
foreach
(
$brand_ids
as
$brandID
)
...
...
Please
register
or
login
to post a comment