mirror of
				https://github.com/LamGC/ContentGrabbingJi.git
				synced 2025-11-04 02:26:57 +00:00 
			
		
		
		
	[Change] MiraiMain 显性设置DeviceInfo为'randomDeviceInfo';
This commit is contained in:
		@ -51,6 +51,7 @@ public class MiraiMain implements Closeable {
 | 
			
		||||
 | 
			
		||||
        Utils.setDefaultLogger(MiraiToSlf4jLoggerAdapter::new);
 | 
			
		||||
        BotConfiguration configuration = new BotConfiguration();
 | 
			
		||||
        configuration.randomDeviceInfo();
 | 
			
		||||
        configuration.setProtocol(BotConfiguration.MiraiProtocol.ANDROID_PAD);
 | 
			
		||||
        bot = BotFactoryJvm.newBot(Long.parseLong(botProperties.getProperty("bot.qq", "0")),
 | 
			
		||||
                Base64.getDecoder().decode(botProperties.getProperty("bot.password", "")), configuration);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user