Commit c7ca91ec authored by 陈志良's avatar 陈志良

a

parent 42f330db
...@@ -81,14 +81,12 @@ exports.createLog = function(req,info,type,thread_type,thread,p_thread) { ...@@ -81,14 +81,12 @@ exports.createLog = function(req,info,type,thread_type,thread,p_thread) {
q.thread = logObj.thread; q.thread = logObj.thread;
q.thread_type = logObj.thread_type; q.thread_type = logObj.thread_type;
} }
console.log(q);
ForumUVLog.findOne(q,function(err,doc){ ForumUVLog.findOne(q,function(err,doc){
cont(err,doc?false:true); cont(err,doc?false:true);
}) })
}).then(function(cont,isLog){ }).then(function(cont,isLog){
console.log(isLog);
if(isLog){ if(isLog){
var uv_model = new ForumUVLog(log); var uv_model = new ForumUVLog(logObj);
uv_model.save(); uv_model.save();
} }
}).fail(function(cont,err){ }).fail(function(cont,err){
......
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