qiushang 7 months ago
parent
commit
a29c731dd0

BIN
nsis/skin/bg1.png


BIN
nsis/skin/bg2.png


BIN
nsis/skin/bgtop.png


+ 4 - 4
nsis/test.nsi

@@ -1,16 +1,16 @@
 # ====================== 自定义宏 产品信息==============================
 !define PRODUCT_MID        		    "JBgbQ0u0hBnO"
-!define PRODUCT_VERSION        		"2.0.0.0"
-!define PRODUCT_NAME           		"星优微信多开"
+!define PRODUCT_VERSION        		"2.0.1.0"
+!define PRODUCT_NAME           		"星优微信多开大师"
 !define INSTALL_OUTPUT_NAME    		"XYWeixin_XY.exe" 
 !define EXE_NAME               		"XYWeixin.exe"
 !define PRODUCT_PATHNAME           	"XYWeixin"     #安装卸载项用到的KEY,注册表
 !define INSTALL_APPEND_PATH         "XYWeixin"     #安装路径追加的名称 
-!define APP_DOWNLOAD_URL    		"https://xy.xingyousoft.com/soft/XYWeixin/lastest2.0.0.0.7z"
+!define APP_DOWNLOAD_URL    		"https://xy.xingyousoft.com/soft/XYWeixin/lastest2.0.1.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/XYWeixin/uninstallWeb/?v=2.0.0.0"   # 接卸优惠网址
+!define UNINSTALL_url               "https://xy.xingyousoft.com/soft/XYWeixin/uninstallWeb/?v=2.0.1.0"   # 接卸优惠网址
 
 # ====================== 自定义宏 安装信息==============================
 !define INSTALL_7Z_NAME 	   		"app.7z"

+ 2 - 2
package.json

@@ -1,6 +1,6 @@
 {
 	"name": "XYWeixin",
-	"version": "2.0.0.0",
+	"version": "2.0.1.0",
 	"author": "苏州星优办公软件有限公司",
 	"description": "An electron-vue project",
 	"license": "xyweixin",
@@ -9,7 +9,7 @@
 		"description": "这里是软件描述文档",
 		"downloadName": "XYWeixin",
 		"softMid": "JBgbQ0u0hBnO",
-		"softName": "星优微信多开",
+		"softName": "星优微信多开大师",
 		"copyright": "苏州星优办公软件有限公司",
 		"popupAdvId": "36",
 		"linkId": "37",

+ 1 - 1
src/index.ejs

@@ -2,7 +2,7 @@
 <html>
   <head>
     <meta charset="utf-8">
-    <title>星优微信多开</title>
+    <title>星优微信多开大师</title>
     <% if (htmlWebpackPlugin.options.nodeModules) { %>
       <!-- Add `node_modules/` to global paths so `require` works properly in development -->
       <script>

BIN
src/renderer/assets/image/gif.gif


+ 73 - 26
src/renderer/components/home.vue

@@ -9,16 +9,19 @@
 				<el-card style="margin: 50px 30px;">
 					<div style="text-align: center;">
 						<h2>设置</h2>
-						<el-divider content-position="left">微信安装路径:</el-divider>
-						<el-input v-model="handleData.exeUrl" size="small" placeholder="输入微信安装路径" style="width: 80%;"></el-input>
-						<el-button type="primary" size="small" @click="pickPath">点击更改</el-button>
 						
-						<el-popover placement="bottom" width="400" trigger="click" popper-class="wei-dialog">
-							<div slot="reference" style="margin-top: 20px;"><el-link type="danger">查看使用教程</el-link></div>
-							<div class="api">
-								<img src="../assets/image/gif.gif" style="width: 100%;"/>
-							</div>
+						<el-divider content-position="left">微信安装路径:
+						<el-popover placement="top" width="200" trigger="hover">
+							<i slot="reference" class="el-icon-warning" style="color: #F56C6C;"></i>
+							<div>路径中不能包含中文</div>
 						</el-popover>
+						</el-divider>
+						<el-input v-model="handleData.exeUrl" size="small" placeholder="输入微信安装路径" style="width: 85%;"></el-input>
+						<el-button type="primary" size="small" @click="savePath">保存</el-button>
+						
+						<a href="https://www.xingyousoft.com/news/detail/g6AJZLV9CoRE">
+							<div style="margin-top: 20px;"><el-link type="danger">查看微信安装路径教程</el-link></div>
+						</a>
 						
 						<el-divider content-position="left">打开数量:</el-divider>
 						<div style="margin: 20px;">
@@ -45,7 +48,7 @@
 							</el-popover>
 						</div>
 						
-						<el-button type="danger" @click="exportFile()" :loading="loading">保存并启动</el-button>
+						<el-button type="danger" @click="exportFile()" :loading="loading">启动微信多开</el-button>
 					</div>
 				</el-card>
 				
@@ -165,6 +168,27 @@ export default {
 				spinLoad.close();
 			});
 		},
+		// 保存目录
+		savePath(){
+			if(!this.handleData.exeUrl){
+				this.$notify({
+					title: '提示',
+					message: '请输入微信安装路径',
+					type: 'warning'
+				});
+				return false;
+			}
+			
+			let url = this.handleData.exeUrl.trim().replace(/^"|"$/g, '');;
+			this.handleData.exeUrl = url;
+			
+			this.$utils.setStorage('exeUrl', this.handleData.exeUrl);
+			
+			this.$message({
+				message: '路径保存成功',
+				type: 'success'
+			});
+		},
 		
 		// 加载微信运行路径
 		initWechatPath(){
@@ -178,12 +202,17 @@ export default {
 				'E:\\Tencent\\WeChat\\WeChat.exe',
 			];
 			
-			for(let i in wechatPathArr){
-				try{
-					fs.accessSync(wechatPathArr[i], fs.constants.R_OK);
-					this.handleData.exeUrl = wechatPathArr[i];
-				}catch(e){
-					//TODO handle the exception
+			let exeUrl = this.$utils.getStorage('exeUrl');
+			if(exeUrl){
+				this.handleData.exeUrl = exeUrl;
+			}else{
+				for(let i in wechatPathArr){
+					try{
+						fs.accessSync(wechatPathArr[i], fs.constants.R_OK);
+						this.handleData.exeUrl = wechatPathArr[i];
+					}catch(e){
+						//TODO handle the exception
+					}
 				}
 			}
 		},
@@ -283,11 +312,10 @@ export default {
 			}
 			
 			const batFileContent = `
-				@echo off
-				` + skillWechat + `
-				` + str + `
-				exit
-				`;
+			@echo off
+			` + skillWechat + `
+			` + str + `
+			exit`;
 			
 			let batFilePath = path.join(__dirname, '/../../../app.asar.unpacked/node_modules/Qt5.bat');
 			if(process.env.NODE_ENV == "development"){ // 开发运行
@@ -295,14 +323,33 @@ export default {
 			}
 			
 			try {
-				fs.writeFileSync(batFilePath, batFileContent, 'utf8');
+				fs.writeFileSync(batFilePath, batFileContent);
 				this.loading = false;
 			} catch (err) {
-				this.$notify({
-					title: '提示',
-					message: '启动生成失败,请联系客服',
-					type: 'warning'
-				});
+				if(err.toString().indexOf('permitted') > -1){
+					this.$notify({
+						title: '提示',
+						dangerouslyUseHTMLString: true,
+						message: '授权失败,请退出并以管理员权限运行软件!<a class="a-href" href="https://www.xingyousoft.com/news/detail/D6rFCh2exKHW" style="color: #F56C6C; text-decoration:underline;">(点击查看解决办法)</a>',
+						type: 'warning'
+					});
+					
+					const links = document.querySelectorAll('a[class="a-href"]');
+					links.forEach(link => {
+						link.addEventListener('click', e => {
+							const url = link.getAttribute('href');
+							e.preventDefault();
+					        electronApi.call('openExternal', [url]);
+						});
+					});
+				}else{
+					this.$notify({
+						title: '提示',
+						message: '启动生成失败,请联系客服',
+						type: 'warning'
+					});
+				}
+				
 			}
 			
 			if(!authority && flag){

+ 9 - 1
src/renderer/components/update.vue

@@ -12,8 +12,16 @@
 		    </div>
 			
 			<div>
-				<span v-if="linkList.length > 0" class="footer-menu" style="padding: 0;cursor:default;"><i class="iconfont iconx-lianjie"></i>应用推荐:</span>
+				<!-- <span v-if="linkList.length > 0" class="footer-menu" style="padding: 0;cursor:default;"><i class="iconfont iconx-lianjie"></i>应用推荐:</span>
 				<a v-for="(item, key) in linkList" :key="key" @click="openUrl(item.url)"><span class="footer-menu">{{item.title}}</span></a>
+				 -->
+				<el-popover placement="top" width="500" trigger="click" popper-class="wei-dialog">
+					<div slot="reference"><el-link :underline="false" type="danger">视频使用教程</el-link></div>
+					<div class="api">
+						<img src="../assets/image/gif.gif" style="width: 100%;"/>
+					</div>
+				
+				</el-popover>
 			</div>
 			
 		    <div style="cursor:pointer;position: relative;font-size: 13px;" @click="updateSoft()">