Commit e42b46ae authored by 刘文胜's avatar 刘文胜

修改文章状态加入判断shader是否为空

parent b1e512e2
...@@ -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