添加 assistant 助手;其他调整(大调整)
This commit is contained in:
		@@ -21,12 +21,20 @@ args = {
 | 
			
		||||
    limit: Number(args.limit) || undefined,
 | 
			
		||||
    // 分区
 | 
			
		||||
    partition: Number(args.partition) || undefined,
 | 
			
		||||
 | 
			
		||||
    // #################################
 | 
			
		||||
    // 两次请求之间等待时间
 | 
			
		||||
    sleepTime: Number(args.sleepTime) || 100,
 | 
			
		||||
    // 数据库
 | 
			
		||||
    database: args.database || "neteasemusic",
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
console.log("args:", args);
 | 
			
		||||
 | 
			
		||||
// 指定数据库名
 | 
			
		||||
if (args.database != "neteasemusic")
 | 
			
		||||
    console.log(`注意,当前连接的数据库 [${args.database}] 非业务数据库`);
 | 
			
		||||
global.database = args.database;
 | 
			
		||||
 | 
			
		||||
global.sleepTime = args.sleepTime; // 两次请求之间停顿时间
 | 
			
		||||
global.useMysqlPool = true;
 | 
			
		||||
const neteaseMusic = require('./src/index');
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user