Authored by ccbikai(👎🏻🍜)

客服图片暂时不能自适应

@@ -15,12 +15,10 @@ exports.handleOrderList = (data, w, h) => { @@ -15,12 +15,10 @@ exports.handleOrderList = (data, w, h) => {
15 } 15 }
16 16
17 function replaceWH(img) { 17 function replaceWH(img) {
18 - return img.replace(/(^https?:|\{width\}|\{height\})/g, function($0) { 18 + return img.replace(/(\{width\}|\{height\})/g, function($0) {
19 const dict = { 19 const dict = {
20 '{width}': w, 20 '{width}': w,
21 - '{height}': h,  
22 - 'http:': '',  
23 - 'https:': '' 21 + '{height}': h
24 }; 22 };
25 23
26 return dict[$0]; 24 return dict[$0];