var thumb200 = function( img ){ if( img.indexOf( "longong.99.com")>-1 ){ return img.split("?")[0]+"@200w.jpg"; }else if( img.indexOf("aliyuncs")>-1){ return img.split("?")[0]+"?x-oss-process=image/resize,m_fill,w_200" }else{ return img } } module.exports = { thumb200:thumb200 };