...
|
...
|
@@ -20,7 +20,8 @@ const config = require('../config/common'); |
|
|
exports.image = (url, width, height, mode) => {
|
|
|
mode = _.isNumber(mode) ? mode : 2;
|
|
|
url = url || '';
|
|
|
return url.replace(/{width}/g, width).replace(/{height}/g, height).replace(/{mode}/g, mode);
|
|
|
url = url.replace(/{width}/g, width).replace(/{height}/g, height).replace(/{mode}/g, mode);
|
|
|
return url.replace('http:', '');
|
|
|
};
|
|
|
|
|
|
/**
|
...
|
...
|
|