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

fix版主加精没送积分

parent 045d3c41
......@@ -42,15 +42,13 @@ function moderatorOperateLog(forumUser,thread,type){
function addIntegral(thread){
var openID=thread.from.uid;
var tid= thread._id;
var userID=thread.from._id;
var ent_code= thread.ent_code;
forumLimitOperationService.checkLimitOperationProhibitionAddIntegral(tid, function(err, flag){
forumLimitOperationService.checkLimitOperationProhibitionAddIntegral(userID, function(err, flag){
if(!err && !flag){
//获取mid
console.log(API_ADDRESS);
request.get({url:API_ADDRESS+'/v1.0/internal/member/getMidbyOpenID?entCode='
+ent_code+'&openID='+openID,json:true},function(e,r,res){
console.log(res);
if(res && res.data){
httpService.sendRequest(ent_code,res.data,'thread_recomment');
}
......
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