| 
					
				 | 
			
			
				@@ -385,9 +385,17 @@ def yozo_plugin_monitor(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     option = request.get_json()['option'] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     yozo_path = os.path.dirname(os.path.dirname(config.yozoc)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     plugin_path = os.path.join(yozo_path, 'Plugins','yozooffice-jar-with-dependencies.jar') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    flag = os.path.exists(plugin_path) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    return jsonify({'code': 1000, 'msg': 'plugin_status', 'data': flag}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    msg = '操作成功' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if option == 'install': 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if os.path.exists(plugin_path): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            os.remove(plugin_path) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        os.system(f'cp yozooffice-jar-with-dependencies.jar {plugin_path}') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    elif option == 'uninstall': 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if os.path.exists(plugin_path): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            os.remove(plugin_path) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            msg = '插件卸载成功' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    return jsonify({'code': 1000, 'msg': msg}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @logger.catch() 
			 |