Commit 24a6cf70 authored by 陈家荣's avatar 陈家荣

update icon

parent c0bb2364
......@@ -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