Commit ecd5e81b authored by 陈家荣's avatar 陈家荣

Merge branch 'development' of git.wxpai.cn:scrmgroup/pisns-forum-api into development

parents 96342fc0 e42b46ae
...@@ -253,8 +253,8 @@ exports.getThreadById = function(tid, callback) { ...@@ -253,8 +253,8 @@ exports.getThreadById = function(tid, callback) {
//根据ID更新文章 //根据ID更新文章
exports.updateThreadById = function(tid, entity, callback) { exports.updateThreadById = function(tid, entity, callback) {
var shareEntity = entity.share; var shareEntity = entity.share || {};
if (entity.share._id) { if (entity.share && entity.share._id) {
entity.share = entity.share._id; entity.share = entity.share._id;
}else{ }else{
entity.share = ''; entity.share = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment