Commit 5e619745 authored by 陈志良's avatar 陈志良

a

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