Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pisns-forum-api
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
scrmGroup
pisns-forum-api
Commits
497f12fa
Commit
497f12fa
authored
Nov 30, 2015
by
strong
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
0852c32b
' into SANDBOX
parents
d8082457
0852c32b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
forumThread.js
app/controllers/mobile/forumThread.js
+9
-2
No files found.
app/controllers/mobile/forumThread.js
View file @
497f12fa
...
...
@@ -58,7 +58,14 @@ function create(req, callback) {
entity
.
images
=
array
;
}
//-----------处理前端上传图片结束
if
(
entity
.
pid
&&
entity
.
type
==
3
)
{
//校验是否全是表情
var
temp_content
=
entity
.
content
;
temp_content
=
temp_content
.
replace
(
/<img
\/?
.+
?
border="0">/g
,
""
);
if
(
!
temp_content
||
temp_content
.
length
<
1
){
callback
(
'content error'
,
null
);
}
else
if
(
entity
.
pid
&&
entity
.
type
==
3
)
{
forumThreadService
.
getByConditions
({
type
:
3
,
level
:
'2'
,
...
...
@@ -330,7 +337,7 @@ router.post('/thread/create', function(req, res, next) {
create
(
req
,
function
(
err
,
thread
)
{
if
(
err
)
{
console
.
error
(
err
);
res
.
json
(
returnCode
.
BUSY
);
res
.
json
(
_
.
assign
(
err
,
returnCode
.
BUSY
)
);
}
else
{
forumAboutMEService
.
saveThread
(
thread
);
forumLimitOperationService
.
checkLimitOperationProhibitionAddIntegral
(
userId
,
function
(
err
,
flag
)
{
...
...
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