Commit c4c2a2b7 authored by 陈志良's avatar 陈志良

Merge branch 'Gabriel_0910_updateUserIcon' into SANDBOX

parents 8b1b4dd0 bfd1efbd
......@@ -49,6 +49,13 @@ router.post('/thread/create', function(req, res, next) {
ent_code = req.session.user.ent_code,
icon = req.session.user.headPic,
nickName = req.session.user.name;
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;
}
}
req.body.ent_code = ent_code;
if (!req.body.share) {
delete req.body.share;
......
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