|  |  | @ -58,26 +58,25 @@ app.post('/createShortcut', (req, res) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |     return res.status(400).send('少了参数!'); |  |  |  |     return res.status(400).send('少了参数!'); | 
			
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |   } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   if (!fs.existsSync(folderPath)) { |  |  |  |   // if (!fs.existsSync(folderPath)) {
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     fs.mkdirSync(folderPath, { |  |  |  |   //   fs.mkdirSync(folderPath, {
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       recursive: true |  |  |  |   //     recursive: true
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     }); |  |  |  |   //   });
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |   // }
 | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   const shortcutLinkPath = path.join(folderPath, shortcutName); |  |  |  |   const shortcutLinkPath = path.join(folderPath, shortcutName); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   if (fs.existsSync(shortcutLinkPath)) { |  |  |  |   // if (fs.existsSync(shortcutLinkPath)) {
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     fs.unlinkSync(shortcutLinkPath); |  |  |  |   //   fs.unlinkSync(shortcutLinkPath);
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |   // }
 | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   fs.symlink(shortcutURL, shortcutLinkPath, 'file', (err) => { |  |  |  |   try { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     if (err) { |  |  |  |     fs.symlinkSync(shortcutURL, shortcutLinkPath, 'file'); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       console.error(err); |  |  |  |     res.status(200).send('安装成功!'); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       res.status(500).send('安装失败!'); |  |  |  |   } catch (err) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     } else { |  |  |  |     console.error(err); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       res.status(200).send('安装成功!'); |  |  |  |     res.status(500).send('安装失败!'); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |   } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   }); |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   // // 快捷方式的配置
 |  |  |  |   // // 快捷方式的配置
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   // const config = {
 |  |  |  |   // const config = {
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |