qiushang 8 tháng trước cách đây
mục cha
commit
832e9589c8

+ 3 - 3
nsis/test.nsi

@@ -1,16 +1,16 @@
 # ====================== 自定义宏 产品信息==============================
 !define PRODUCT_MID        		    "Ds8JqlRmiiGR"
-!define PRODUCT_VERSION        		"2.0.8.1"
+!define PRODUCT_VERSION        		"2.0.8.2"
 !define PRODUCT_NAME           		"星优图片下载助手"
 !define INSTALL_OUTPUT_NAME    		"XYCapture_XY.exe" 
 !define EXE_NAME               		"XYCapture.exe"
 !define PRODUCT_PATHNAME           	"XYCapture"     #安装卸载项用到的KEY,注册表
 !define INSTALL_APPEND_PATH         "XYCapture"     #安装路径追加的名称 
-!define APP_DOWNLOAD_URL    		"https://xy.xingyousoft.com/soft/XYCapture/lastest2.0.8.1.7z"
+!define APP_DOWNLOAD_URL    		"https://xy.xingyousoft.com/soft/XYCapture/lastest2.0.8.2.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/XYCapture/uninstallWeb/?v=2.0.8.1"   # 接卸优惠网址
+!define UNINSTALL_url               "https://xy.xingyousoft.com/soft/XYCapture/uninstallWeb/?v=2.0.8.2"   # 接卸优惠网址
 
 # ====================== 自定义宏 安装信息==============================
 !define INSTALL_7Z_NAME 	   		"app.7z"

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 	"name": "XYCapture",
-	"version": "2.0.8.1",
+	"version": "2.0.8.2",
 	"author": "苏州星优办公软件有限公司",
 	"description": "An electron-vue project",
 	"license": "capture",

+ 9 - 9
src/renderer/components/header.vue

@@ -139,7 +139,7 @@
 					<el-button size="mini" @click="toLogin('tb')" :loading="tbLoading">天猫/淘宝</el-button>
 					<el-button size="mini" @click="toLogin('red')" :loading="redLoading">小红书</el-button>
 				</el-row>
-				<el-divider content-position="left">
+				<!-- <el-divider content-position="left">
 					同时下载量
 					<el-popover placement="bottom" popper-class="popper-open" trigger="hover" content="同时下载量过多,可能会触发平台拦截">
 						<i class="el-icon-info" slot="reference" style="margin-left: 10px; color: #F56C6C;"></i>
@@ -152,7 +152,7 @@
 					    <el-radio :label="3">3个</el-radio>
 					    <el-radio :label="4">4个</el-radio>
 					</el-radio-group>
-				</el-row>
+				</el-row> -->
 				<el-divider content-position="left">
 					浏览器版本 
 					<el-popover placement="bottom" popper-class="popper-open" trigger="hover" content="win10以下版本(不含win10),请使用兼容版本的浏览器">
@@ -208,7 +208,7 @@
 				boot: false, // 开机启动
 				closeModel: false,
 				closeType: 2,
-				numType: 2,
+				numType: 1,
 				versionType: 2,
 				isRemember:true,
 				//
@@ -441,7 +441,7 @@
 						type: 'warning'
 					}).then(() => {
 						this.$utils.setStorage('closeType', this.closeType);
-						this.$utils.setStorage('numType', this.numType);
+						// this.$utils.setStorage('numType', this.numType);
 						this.$utils.setStorage('versionType', this.versionType);
 						this.$utils.setStorage('isRemember', true)
 						ipcRenderer.send('boot', this.boot);
@@ -454,7 +454,7 @@
 					});
 				}else{
 					this.$utils.setStorage('closeType', this.closeType);
-					this.$utils.setStorage('numType', this.numType);
+					// this.$utils.setStorage('numType', this.numType);
 					this.$utils.setStorage('versionType', this.versionType);
 					this.$utils.setStorage('isRemember', true)
 					ipcRenderer.send('boot', this.boot);
@@ -754,14 +754,14 @@
 					this.saveLoading = false;
 					// 获取设置
 					let closeType = this.$utils.getStorage('closeType');
-					let numType = this.$utils.getStorage('numType');
+					// let numType = this.$utils.getStorage('numType');
 					let versionType = this.$utils.getStorage('versionType');
 					if(closeType){
 						this.closeType = closeType;
 					}
-					if(numType){
-						this.numType = numType;
-					}
+					// if(numType){
+					// 	this.numType = numType;
+					// }
 					if(versionType){
 						this.versionType = versionType;
 					}

+ 10 - 11
src/renderer/components/home.vue

@@ -257,8 +257,8 @@
 					<el-dialog title="提示" :visible.sync="loginVisible" width="400px" :close-on-click-modal="false" :close-on-press-escape="false">
 						<div style="text-align: center; color: #999; font-size: 14px;">
 							<template v-if="menuIndex == '1'">
-								<p>阿里巴巴渠道需要登录后才能下载</p>
-								<p class="visible-tips-style">目前检测还未登录阿里巴巴账号,需立即登录</p>
+								<p>阿里巴巴渠道建议登录后下载</p>
+								<p class="visible-tips-style">目前检测还未登录阿里巴巴账号,未登录可能会导致图片下载不全</p>
 							</template>
 							<template v-else-if="menuIndex == '2'">
 								<p>京东渠道需要登录后才能下载</p>
@@ -276,7 +276,10 @@
 						</div>
 						<div slot="footer" class="dialog-footer-center">
 							<el-button v-if="menuIndex == '2'" @click="loginVisible = false; loginUrl('https://passport.jd.com/new/login.aspx')">点击登录京东账号</el-button>
-							<el-button v-else-if="menuIndex == '1'" @click="loginVisible = false; loginUrl('https://www.1688.com')">点击登录阿里巴巴账号</el-button>
+							<template v-else-if="menuIndex == '1'">
+								<el-button @click="loginVisible = false; loginUrl('https://www.1688.com')">点击登录阿里巴巴账号</el-button>
+								<el-button type="primary" @click="loginVisible = false; skipLogin = true; exportFile();">继续下载</el-button>
+							</template>
 							<el-button v-else-if="menuIndex == '5'" @click="loginVisible = false; loginUrl('https://www.xiaohongshu.com')">点击登录小红书账号</el-button>
 							<el-button v-else @click="loginVisible = false; loginUrl('https://login.taobao.com')">点击登录天猫/淘宝账号</el-button>
 						</div>
@@ -391,7 +394,7 @@
 				jdStatus: 1, // 1、未检测 2、已经登录 3、未登录 
 				redStatus: 1, //同上
 				alibabaStatus: 1, //同上上
-				execLimit: 2,
+				execLimit: 1,
 				execNum: 3, // 限制5张
 				
 				/** 浏览器名称 **/
@@ -401,6 +404,7 @@
 				otherBrowser: null,
 				redBrowser: null,
 				loginBrowser: null, // 登录用的浏览器实例
+				skipLogin: false,
 			};
 		},
 		computed: {
@@ -844,7 +848,7 @@
 						fs.mkdirSync(os.tmpdir() + separator + 'chrome-data-capture');
 					}
 					
-					if(this.menuIndex == '1'){ // 阿里巴巴
+					if(this.menuIndex == '1' && !this.skipLogin){ // 阿里巴巴
 						if(this.alibabaStatus == 1 || this.alibabaStatus == 3){  // 未检测登录状态/或提示未登录状态,开始检测
 							await this.checkAlibabaLogin().then((data) => {
 								if(data != 2){  // 未登录
@@ -974,11 +978,6 @@
 							taskArr.push(task);
 						}
 						
-						let numType = this.$utils.getStorage('numType');
-						if(numType){
-							this.execLimit = numType;
-						}
-						
 						if((i+1) % this.execLimit == 0){
 							await Promise.all(taskArr).then(result => {
 								taskArr = [];
@@ -1643,7 +1642,7 @@
 							// 	executablePath: this.initPath(),
 							// 	userDataDir: os.tmpdir() + separator + 'chrome-data-capture', 
 							// });
-							const page = await tbBrowser.newPage();
+							let page = await tbBrowser.newPage();
 							await page.goto(urlInfo.url, {waitUntil : 'networkidle0'});
 							
 							if(urlInfo.title){

+ 2 - 2
src/renderer/components/update.vue

@@ -89,8 +89,8 @@
 				<el-collapse-item title="6、报错:权限受限,请以管理员权限运行软件" name="6">
 					<div>软件权限受系统限制无法运行,需要退出软件,鼠标右击软件图标以管理员权限运行一下。</div>
 				</el-collapse-item>
-				<el-collapse-item title="7、实况(Live)图下载的不全" name="7">
-					<div>实况(Live)图下载的格式为mp4,且设置同时下载任务量必须为1个,点击软件右上角菜单按钮,选择软件设置-同时下载任务量-1个</div>
+				<el-collapse-item title="7、小红书实况(Live)图下载的不全" name="7">
+					<div>实况(Live)图下载的格式为mp4,点击软件右上角菜单按钮,选择软件设置-浏览器版本-最新版本</div>
 				</el-collapse-item>
 				<el-collapse-item title="8、浏览器版本如何选择和使用?" name="8">
 					<div>点击软件右上角菜单按钮,选择软件设置-浏览器版本,兼容版本适合win10以下系统使用,win10及以上建议使用最新版本,小红书下载仅支持win10及以上系统且浏览器为最新版本。</div>