Authored by 毕凯

Merge branch 'revert-f568aa98' into 'master'

Revert "客服图片暂时不能自适应"

This reverts commit f568aa98

See merge request !79
... ... @@ -15,10 +15,12 @@ exports.handleOrderList = (data, w, h) => {
}
function replaceWH(img) {
return img.replace(/(\{width\}|\{height\})/g, function($0) {
return img.replace(/(^https?:|\{width\}|\{height\})/g, function($0) {
const dict = {
'{width}': w,
'{height}': h
'{height}': h,
'http:': '',
'https:': ''
};
return dict[$0];
... ...