From 804072999ec9055142ca21bca9fbad149d5a5787 Mon Sep 17 00:00:00 2001
From: Molunerfinn <marksz@teamsz.xyz>
Date: Wed, 26 Sep 2018 23:11:21 +0800
Subject: [PATCH] Fixed: aliyun imgUrl in list

---
 src/main/utils/aliYunUpload.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/utils/aliYunUpload.js b/src/main/utils/aliYunUpload.js
index 0f170a3..0573f49 100644
--- a/src/main/utils/aliYunUpload.js
+++ b/src/main/utils/aliYunUpload.js
@@ -49,7 +49,7 @@ const aliYunUpload = async (img, type, webContents) => {
         if (customUrl) {
           imgList[i]['imgUrl'] = `${customUrl}/${path}${imgList[i].fileName}`
         } else {
-          imgList[i]['imgUrl'] = `https://${aliYunOptions.bucket}.${aliYunOptions.area}.aliyuncs.com/${path}${imgList[0].fileName}`
+          imgList[i]['imgUrl'] = `https://${aliYunOptions.bucket}.${aliYunOptions.area}.aliyuncs.com/${path}${imgList[i].fileName}`
         }
         imgList[i]['type'] = 'aliyun'
         if (i - length === -1) {