qiushang 6 月之前
父节点
当前提交
d5d44bf9de
共有 3 个文件被更改,包括 16 次插入8 次删除
  1. 3 3
      nsis/test.nsi
  2. 1 1
      package.json
  3. 12 4
      src/renderer/components/home.vue

+ 3 - 3
nsis/test.nsi

@@ -1,16 +1,16 @@
 # ====================== 自定义宏 产品信息==============================
 !define PRODUCT_MID        		    "IiGyKuuKwlO0"
-!define PRODUCT_VERSION        		"2.0.1.0"
+!define PRODUCT_VERSION        		"2.1.0.0"
 !define PRODUCT_NAME           		"星优图片无损放大器"
 !define INSTALL_OUTPUT_NAME    		"XYAmplify_XY.exe" 
 !define EXE_NAME               		"XYAmplify.exe"
 !define PRODUCT_PATHNAME           	"XYAmplify"     #安装卸载项用到的KEY,注册表
 !define INSTALL_APPEND_PATH         "XYAmplify"     #安装路径追加的名称 
-!define APP_DOWNLOAD_URL    		"https://xy.xingyousoft.com/soft/XYAmplify/lastest2.0.1.0.7z"
+!define APP_DOWNLOAD_URL    		"https://xy.xingyousoft.com/soft/XYAmplify/lastest2.1.0.0.7z"
 !define PRODUCT_PUBLISHER      	    "苏州星优办公软件有限公司"
 !define PRODUCT_LEGAL          	    "苏州星优办公软件有限公司"
 !define STATISTICS_url              "https://www.xingyousoft.com/api/index/user_log"   # 统计网址
-!define UNINSTALL_url               "https://xy.xingyousoft.com/soft/XYAmplify/uninstallWeb/?v=2.0.1.0"   # 接卸优惠网址
+!define UNINSTALL_url               "https://xy.xingyousoft.com/soft/XYAmplify/uninstallWeb/?v=2.1.0.0"   # 接卸优惠网址
 
 # ====================== 自定义宏 安装信息==============================
 !define INSTALL_7Z_NAME 	   		"app.7z"

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 	"name": "XYAmplify",
-	"version": "2.0.1.0",
+	"version": "2.1.0.0",
 	"author": "苏州星优办公软件有限公司",
 	"description": "An electron-vue project",
 	"license": "amplify",

+ 12 - 4
src/renderer/components/home.vue

@@ -490,11 +490,15 @@ export default {
 						item.percent = 100;
 						this.imgList.splice(index, 1, item);
 						clearInterval(item.interval);
-						fs.unlinkSync(tempPath);
+						if(fs.existsSync(tempPath)){
+							fs.unlinkSync(tempPath);
+						}
 					}).catch(err => {
 						this.failNum ++;
 						clearInterval(item.interval);
-						fs.unlinkSync(tempPath);
+						if(fs.existsSync(tempPath)){
+							fs.unlinkSync(tempPath);
+						}
 					});
 				}).catch(err => {
 					this.failNum ++;
@@ -601,12 +605,16 @@ export default {
 						item.percent = 100;
 						this.imgList.splice(index, 1, item);
 						clearInterval(item.interval);
-						fs.unlinkSync(tempPath);
+						if(fs.existsSync(tempPath)){
+							fs.unlinkSync(tempPath);
+						}
 						console.log('---添加水印成功---', res)
 					}).catch(err => {
 						this.failNum ++;
 						clearInterval(item.interval);
-						fs.unlinkSync(tempPath);
+						if(fs.existsSync(tempPath)){
+							fs.unlinkSync(tempPath);
+						}
 						console.log('---添加水印失败---', err)
 					});
 				}).catch(err => {