Authored by 陈轩

fix

... ... @@ -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,
'http:': '',
'https:': ''
};
return dict[$0];
... ...