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
7902ecc9
Commit
7902ecc9
authored
Jul 04, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
586b0c0d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
News.php
application/api_broker/controller/News.php
+4
-1
News.php
application/index/controller/News.php
+0
-4
No files found.
application/api_broker/controller/News.php
View file @
7902ecc9
...
@@ -145,10 +145,13 @@ class News extends Basic
...
@@ -145,10 +145,13 @@ class News extends Basic
return
$this
->
response
(
101
,
'文章内容为空'
);
return
$this
->
response
(
101
,
'文章内容为空'
);
}
}
if
(
mb_strlen
(
$this
->
params
[
'content'
])
>
501
)
{
return
$this
->
response
(
101
,
'内容字数超过限制!'
);
}
$data
[
'agent_id'
]
=
$this
->
agentId
;
$data
[
'agent_id'
]
=
$this
->
agentId
;
$data
[
's_news_id'
]
=
$this
->
params
[
'news_id'
];
$data
[
's_news_id'
]
=
$this
->
params
[
'news_id'
];
$data
[
'comment_content'
]
=
$this
->
params
[
'content'
]
;
$data
[
'comment_content'
]
=
htmlentities
(
$this
->
params
[
'content'
])
;
$data
[
'status'
]
=
0
;
$data
[
'status'
]
=
0
;
$m_new_comment
=
new
SNewsComment
();
$m_new_comment
=
new
SNewsComment
();
...
...
application/index/controller/News.php
View file @
7902ecc9
...
@@ -84,10 +84,6 @@ class News extends Basic
...
@@ -84,10 +84,6 @@ class News extends Basic
return
$this
->
response
(
101
,
'内容为空!'
);
return
$this
->
response
(
101
,
'内容为空!'
);
}
}
if
(
mb_strlen
(
$this
->
params
[
'content'
])
>
501
)
{
return
$this
->
response
(
101
,
'内容字数超过限制!'
);
}
if
(
empty
(
$this
->
params
[
'file_img'
]))
{
if
(
empty
(
$this
->
params
[
'file_img'
]))
{
return
$this
->
response
(
101
,
'封面图片为空'
);
return
$this
->
response
(
101
,
'封面图片为空'
);
}
}
...
...
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