Commit 31f61a33 authored by 陈家荣's avatar 陈家荣

add updateUserByUIdAndEntCode method

parent 52e793f8
...@@ -197,6 +197,22 @@ exports.searchMembersAndLimitActions=function(pageNo, pageSize, q, callback){ ...@@ -197,6 +197,22 @@ exports.searchMembersAndLimitActions=function(pageNo, pageSize, q, callback){
}); });
}; };
//根据UID和entCode更新用户信息
exports.updateUserByUIdAndEntCode=function(uid,ent_code,entity,callback){
ForumUser.update({
uid: uid,
ent_code:ent_code
}, entity,null,function(err,result){
if (err) {
console.error(err);
callback(err,null);
} else {
callback(null,null);
}
});
};
//查询用户和行为限制信息 //查询用户和行为限制信息
// exports.searchMembersAndLimitActions=function(pageNo, pageSize, q, callback){ // exports.searchMembersAndLimitActions=function(pageNo, pageSize, q, callback){
// then(function(cont) { // then(function(cont) {
......
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