Commit f21b49f4 authored by strong's avatar strong

Merge commit '24a6cf70' into SANDBOX

parents db8e9e92 24a6cf70
...@@ -27,7 +27,14 @@ router.post('/user/updateByUid', function(req, res, next) { ...@@ -27,7 +27,14 @@ router.post('/user/updateByUid', function(req, res, next) {
entity.nickName = nickName; entity.nickName = nickName;
} }
if(icon){ if(icon){
entity.icon = icon; if (icon && icon.indexOf('http://') == -1) {
if (process.env.NODE_ENV === 'production') {
icon = 'http://fs.wxpai.cn/' + icon;
} else {
icon = 'http://dev.fs.wxpai.cn/' + icon;
}
}
entity.icon = icon;
} }
forumUserService.updateUserByUIdAndEntCode(uid,ent_code,entity,function(err,result){ forumUserService.updateUserByUIdAndEntCode(uid,ent_code,entity,function(err,result){
......
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