Commit f21b49f4 authored by strong's avatar strong

Merge commit '24a6cf70' into SANDBOX

parents db8e9e92 24a6cf70
......@@ -27,6 +27,13 @@ router.post('/user/updateByUid', function(req, res, next) {
entity.nickName = nickName;
}
if(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;
}
......
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