Commit 235aa871 authored by 陈志良's avatar 陈志良

1

parent c7ca91ec
......@@ -111,16 +111,14 @@ router.get('/thread/:tid/get', function(req, res, next) {
//文章类型 1、文章 2、话题 3、照片墙
var info_id = thread.info._id,
pid = thread.pid;
if (thread.type == 1) {
if (thread.type == 1 && thread.level == 1) {
httpService.createLog(req,info_id,3,1,tid);
} else if (thread.type == 2 && thread.level == 1) {
httpService.createLog(req,info_id,3,2,tid);
} else if (thread.type == 2 && thread.level == 2) {
}else if(thread.type == 1 && thread.level == 2){
httpService.createLog(req,info_id,3,4,tid,pid);
} else if (thread.type == 3 && thread.level == 1) {
}else if (thread.type == 2 && thread.level == 1) {
httpService.createLog(req,info_id,3,2,tid);
}else if (thread.type == 3 && thread.level == 1) {
httpService.createLog(req,info_id,3,3,tid);
}else if(thread.type == 3 && thread.level == 2){
httpService.createLog(req,info_id,3,4,tid,pid);
}
......
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