From 373b7ab7f738560dc0776ff35ae9240df6b3f983 Mon Sep 17 00:00:00 2001 From: coderge Date: Sat, 7 Mar 2020 12:53:42 +0800 Subject: [PATCH] =?UTF-8?q?chroe:=20=E7=94=9F=E6=88=90=E7=9A=84=E5=9B=BE?= =?UTF-8?q?=E7=89=87url=E4=BD=BF=E7=94=A8https=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mock/random/image.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mock/random/image.js b/src/mock/random/image.js index 9eb19235..9161efff 100644 --- a/src/mock/random/image.js +++ b/src/mock/random/image.js @@ -45,7 +45,7 @@ module.exports = { if (foreground && ~foreground.indexOf('#')) foreground = foreground.slice(1) // http://dummyimage.com/600x400/cc00cc/470047.png&text=hello - return 'http://dummyimage.com/' + size + + return 'https://dummyimage.com/' + size + (background ? '/' + background : '') + (foreground ? '/' + foreground : '') + (format ? '.' + format : '') + @@ -279,4 +279,4 @@ module.exports = { ctx.fillText(text, (width / 2), (height / 2), width) return canvas.toDataURL('image/png') } -} \ No newline at end of file +}