Commit 8911c3f7 authored by 张淼's avatar 张淼

1

parent bf0244cc
......@@ -17,10 +17,12 @@ exports.createUser=function(entity,callback){
//根据Uid获取用户
exports.getUserByUid=function(uid,callback){
console.log('==============uid:'+uid);
ForumUser.find({uid:uid}).exec(function(err,results){
if(err){
callback(err,null);
}else{
console.log('==============results:'+results);
if(results && results.length>0){
callback(null,results[0]);
}else{
......
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