取消不必要打印;执行完就退出
This commit is contained in:
		@@ -43,15 +43,8 @@ start cmd /k "node index --utils comment --min 460000000 --max 470000000 --limit
 | 
				
			|||||||
start cmd /k "node index --utils comment --min 510000000 --max 520000000 --limit 10000"
 | 
					start cmd /k "node index --utils comment --min 510000000 --max 520000000 --limit 10000"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# aliyun shell
 | 
					# aliyun shell
 | 
				
			||||||
# start cmd /k "node index --utils comment --min 490000000 --max 500000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 520000000 --max 530000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 530000000 --max 540000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 650000000 --max 1290000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 1310000000 --max 1320000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 1500000000 --max 1510000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 1800000000 --max 1810000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 1810000000 --max 1820000000 --limit 10000"
 | 
					 | 
				
			||||||
cd tools/netease_music/
 | 
					cd tools/netease_music/
 | 
				
			||||||
 | 
					# node index --utils comment --min 490000000 --max 500000000 --limit 10000 &
 | 
				
			||||||
node index --utils comment --min 492000000 --max 493000000 --limit 10000 &
 | 
					node index --utils comment --min 492000000 --max 493000000 --limit 10000 &
 | 
				
			||||||
node index --utils comment --min 493000000 --max 494000000 --limit 10000 &
 | 
					node index --utils comment --min 493000000 --max 494000000 --limit 10000 &
 | 
				
			||||||
node index --utils comment --min 494000000 --max 495000000 --limit 10000 &
 | 
					node index --utils comment --min 494000000 --max 495000000 --limit 10000 &
 | 
				
			||||||
@@ -60,11 +53,9 @@ node index --utils comment --min 496000000 --max 497000000 --limit 10000 &
 | 
				
			|||||||
node index --utils comment --min 497000000 --max 498000000 --limit 10000 &
 | 
					node index --utils comment --min 497000000 --max 498000000 --limit 10000 &
 | 
				
			||||||
node index --utils comment --min 498000000 --max 499000000 --limit 10000 &
 | 
					node index --utils comment --min 498000000 --max 499000000 --limit 10000 &
 | 
				
			||||||
node index --utils comment --min 499000000 --max 500000000 --limit 10000 &
 | 
					node index --utils comment --min 499000000 --max 500000000 --limit 10000 &
 | 
				
			||||||
 | 
					
 | 
				
			||||||
node index --utils comment --min 520000000 --max 530000000 --limit 10000 &
 | 
					node index --utils comment --min 520000000 --max 530000000 --limit 10000 &
 | 
				
			||||||
node index --utils comment --min 530000000 --max 540000000 --limit 10000 &
 | 
					node index --utils comment --min 530000000 --max 540000000 --limit 10000 &
 | 
				
			||||||
# node index --utils comment --min 490000000 --max 500000000 --limit 10000 &
 | 
					 | 
				
			||||||
# node index --utils comment --min 520000000 --max 530000000 --limit 10000 &
 | 
					 | 
				
			||||||
# node index --utils comment --min 530000000 --max 540000000 --limit 10000 &
 | 
					 | 
				
			||||||
node index --utils comment --min 650000000 --max 1290000000 --limit 10000 &
 | 
					node index --utils comment --min 650000000 --max 1290000000 --limit 10000 &
 | 
				
			||||||
node index --utils comment --min 1310000000 --max 1320000000 --limit 10000 &
 | 
					node index --utils comment --min 1310000000 --max 1320000000 --limit 10000 &
 | 
				
			||||||
node index --utils comment --min 1500000000 --max 1510000000 --limit 10000 &
 | 
					node index --utils comment --min 1500000000 --max 1510000000 --limit 10000 &
 | 
				
			||||||
@@ -72,14 +63,6 @@ node index --utils comment --min 1800000000 --max 1810000000 --limit 10000 &
 | 
				
			|||||||
node index --utils comment --min 1810000000 --max 1820000000 --limit 10000 &
 | 
					node index --utils comment --min 1810000000 --max 1820000000 --limit 10000 &
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# aliyun shell 小号
 | 
					# aliyun shell 小号
 | 
				
			||||||
# start cmd /k "node index --utils comment --min 1320000000 --max 1330000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 1330000000 --max 1340000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 1340000000 --max 1350000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 1350000000 --max 1360000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 1360000000 --max 1370000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 1490000000 --max 1500000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 1820000000 --max 1830000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 1830000000 --max 1840000000 --limit 10000"
 | 
					 | 
				
			||||||
cd tools/netease_music/
 | 
					cd tools/netease_music/
 | 
				
			||||||
node index --utils comment --min 1320000000 --max 1330000000 --limit 10000 &
 | 
					node index --utils comment --min 1320000000 --max 1330000000 --limit 10000 &
 | 
				
			||||||
node index --utils comment --min 1330000000 --max 1340000000 --limit 10000 &
 | 
					node index --utils comment --min 1330000000 --max 1340000000 --limit 10000 &
 | 
				
			||||||
@@ -91,13 +74,6 @@ node index --utils comment --min 1820000000 --max 1830000000 --limit 10000 &
 | 
				
			|||||||
node index --utils comment --min 1830000000 --max 1840000000 --limit 10000 &
 | 
					node index --utils comment --min 1830000000 --max 1840000000 --limit 10000 &
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 手机
 | 
					# 手机
 | 
				
			||||||
# start cmd /k "node index --utils comment --min 480000000 --max 490000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 540000000 --max 550000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 550000000 --max 560000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 560000000 --max 570000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 570000000 --max 580000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 1290000000 --max 1300000000 --limit 10000"
 | 
					 | 
				
			||||||
# start cmd /k "node index --utils comment --min 1300000000 --max 1310000000 --limit 10000"
 | 
					 | 
				
			||||||
cd tools/netease_music/
 | 
					cd tools/netease_music/
 | 
				
			||||||
node index --utils comment --min 480000000 --max 490000000 --limit 10000 &
 | 
					node index --utils comment --min 480000000 --max 490000000 --limit 10000 &
 | 
				
			||||||
node index --utils comment --min 540000000 --max 550000000 --limit 10000 &
 | 
					node index --utils comment --min 540000000 --max 550000000 --limit 10000 &
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,9 +30,7 @@ node index --utils lyric --min 1860000000 --max 1870000000 --limit 10000 &
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# node index --utils lyric --min 1850000000 --max 1860000000 --limit 10000 &
 | 
					# node index --utils lyric --min 1850000000 --max 1860000000 --limit 10000 &
 | 
				
			||||||
# node index --utils lyric --min 1840000000 --max 1850000000 --limit 10000 &
 | 
					# node index --utils lyric --min 1840000000 --max 1850000000 --limit 10000 &
 | 
				
			||||||
 | 
					# node index --utils lyric --min 1830000000 --max 1840000000 --limit 10000 &
 | 
				
			||||||
node index --utils lyric --min 1830000000 --max 1840000000 --limit 10000 &
 | 
					 | 
				
			||||||
# node index --utils lyric --min 1830000000 --max 1837000000 --limit 10000 --order desc &
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
node index --utils lyric --min 1820000000 --max 1830000000 --limit 10000 &
 | 
					node index --utils lyric --min 1820000000 --max 1830000000 --limit 10000 &
 | 
				
			||||||
# node index --utils lyric --min 1820000000 --max 1827000000 --limit 10000 --order desc &
 | 
					# node index --utils lyric --min 1820000000 --max 1827000000 --limit 10000 --order desc &
 | 
				
			||||||
@@ -92,7 +90,7 @@ node index --utils lyric --min 1330000000 --max 1340000000 --limit 10000 &
 | 
				
			|||||||
# node index --utils lyric --min 1330000000 --max 1337000000 --limit 10000 --order desc &
 | 
					# node index --utils lyric --min 1330000000 --max 1337000000 --limit 10000 --order desc &
 | 
				
			||||||
 | 
					
 | 
				
			||||||
node index --utils lyric --min 1320000000 --max 1330000000 --limit 10000 &
 | 
					node index --utils lyric --min 1320000000 --max 1330000000 --limit 10000 &
 | 
				
			||||||
# node index --utils lyric --min 1320000000 --max 1325000000 --limit 10000 --order desc &
 | 
					# node index --utils lyric --min 1320000000 --max 1327000000 --limit 10000 --order desc &
 | 
				
			||||||
 | 
					
 | 
				
			||||||
node index --utils lyric --min 1310000000 --max 1320000000 --limit 10000 &
 | 
					node index --utils lyric --min 1310000000 --max 1320000000 --limit 10000 &
 | 
				
			||||||
# node index --utils lyric --min 1310000000 --max 1317000000 --limit 10000 --order desc &
 | 
					# node index --utils lyric --min 1310000000 --max 1317000000 --limit 10000 --order desc &
 | 
				
			||||||
@@ -121,7 +119,6 @@ node index --utils lyric --min 1897000000 --max 1900000000 --limit 10000 --order
 | 
				
			|||||||
node index --utils lyric --min 1887000000 --max 1890000000 --limit 10000 --order desc &
 | 
					node index --utils lyric --min 1887000000 --max 1890000000 --limit 10000 --order desc &
 | 
				
			||||||
node index --utils lyric --min 1877000000 --max 1880000000 --limit 10000 --order desc &
 | 
					node index --utils lyric --min 1877000000 --max 1880000000 --limit 10000 --order desc &
 | 
				
			||||||
node index --utils lyric --min 1867000000 --max 1870000000 --limit 10000 --order desc &
 | 
					node index --utils lyric --min 1867000000 --max 1870000000 --limit 10000 --order desc &
 | 
				
			||||||
node index --utils lyric --min 1837000000 --max 1840000000 --limit 10000 --order desc &
 | 
					 | 
				
			||||||
node index --utils lyric --min 1827000000 --max 1830000000 --limit 10000 --order desc &
 | 
					node index --utils lyric --min 1827000000 --max 1830000000 --limit 10000 --order desc &
 | 
				
			||||||
node index --utils lyric --min 1817000000 --max 1820000000 --limit 10000 --order desc &
 | 
					node index --utils lyric --min 1817000000 --max 1820000000 --limit 10000 --order desc &
 | 
				
			||||||
node index --utils lyric --min 1807000000 --max 1810000000 --limit 10000 --order desc &
 | 
					node index --utils lyric --min 1807000000 --max 1810000000 --limit 10000 --order desc &
 | 
				
			||||||
@@ -144,6 +141,7 @@ node index --utils lyric --min 1337000000 --max 1340000000 --limit 10000 --order
 | 
				
			|||||||
node index --utils lyric --min 1327000000 --max 1330000000 --limit 10000 --order desc &
 | 
					node index --utils lyric --min 1327000000 --max 1330000000 --limit 10000 --order desc &
 | 
				
			||||||
node index --utils lyric --min 1317000000 --max 1320000000 --limit 10000 --order desc &
 | 
					node index --utils lyric --min 1317000000 --max 1320000000 --limit 10000 --order desc &
 | 
				
			||||||
node index --utils lyric --min 1307000000 --max 1310000000 --limit 10000 --order desc &
 | 
					node index --utils lyric --min 1307000000 --max 1310000000 --limit 10000 --order desc &
 | 
				
			||||||
 | 
					# 右边
 | 
				
			||||||
# node index --utils lyric --min 1937000000 --max 1940000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1937000000 --max 1940000000 --limit 10000 --order asc &
 | 
				
			||||||
# node index --utils lyric --min 1927000000 --max 1930000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1927000000 --max 1930000000 --limit 10000 --order asc &
 | 
				
			||||||
# node index --utils lyric --min 1917000000 --max 1920000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1917000000 --max 1920000000 --limit 10000 --order asc &
 | 
				
			||||||
@@ -152,7 +150,6 @@ node index --utils lyric --min 1307000000 --max 1310000000 --limit 10000 --order
 | 
				
			|||||||
# node index --utils lyric --min 1887000000 --max 1890000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1887000000 --max 1890000000 --limit 10000 --order asc &
 | 
				
			||||||
# node index --utils lyric --min 1877000000 --max 1880000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1877000000 --max 1880000000 --limit 10000 --order asc &
 | 
				
			||||||
# node index --utils lyric --min 1867000000 --max 1870000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1867000000 --max 1870000000 --limit 10000 --order asc &
 | 
				
			||||||
# node index --utils lyric --min 1837000000 --max 1840000000 --limit 10000 --order asc &
 | 
					 | 
				
			||||||
# node index --utils lyric --min 1827000000 --max 1830000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1827000000 --max 1830000000 --limit 10000 --order asc &
 | 
				
			||||||
# node index --utils lyric --min 1817000000 --max 1820000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1817000000 --max 1820000000 --limit 10000 --order asc &
 | 
				
			||||||
# node index --utils lyric --min 1807000000 --max 1810000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1807000000 --max 1810000000 --limit 10000 --order asc &
 | 
				
			||||||
@@ -191,8 +188,8 @@ node index --utils lyric --min 1445000000 --max 1447000000 --limit 10000 --order
 | 
				
			|||||||
node index --utils lyric --min 1435000000 --max 1437000000 --limit 10000 --order desc &
 | 
					node index --utils lyric --min 1435000000 --max 1437000000 --limit 10000 --order desc &
 | 
				
			||||||
node index --utils lyric --min 1405000000 --max 1407000000 --limit 10000 --order desc &
 | 
					node index --utils lyric --min 1405000000 --max 1407000000 --limit 10000 --order desc &
 | 
				
			||||||
node index --utils lyric --min 1395000000 --max 1397000000 --limit 10000 --order desc &
 | 
					node index --utils lyric --min 1395000000 --max 1397000000 --limit 10000 --order desc &
 | 
				
			||||||
node index --utils lyric --min 1325000000 --max 1327000000 --limit 10000 --order desc &
 | 
					 | 
				
			||||||
node index --utils lyric --min 1305000000 --max 1307000000 --limit 10000 --order desc &
 | 
					node index --utils lyric --min 1305000000 --max 1307000000 --limit 10000 --order desc &
 | 
				
			||||||
 | 
					# 右边
 | 
				
			||||||
# node index --utils lyric --min 1895000000 --max 1897000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1895000000 --max 1897000000 --limit 10000 --order asc &
 | 
				
			||||||
# node index --utils lyric --min 1885000000 --max 1887000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1885000000 --max 1887000000 --limit 10000 --order asc &
 | 
				
			||||||
# node index --utils lyric --min 1875000000 --max 1877000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1875000000 --max 1877000000 --limit 10000 --order asc &
 | 
				
			||||||
@@ -207,7 +204,6 @@ node index --utils lyric --min 1305000000 --max 1307000000 --limit 10000 --order
 | 
				
			|||||||
# node index --utils lyric --min 1435000000 --max 1437000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1435000000 --max 1437000000 --limit 10000 --order asc &
 | 
				
			||||||
# node index --utils lyric --min 1405000000 --max 1407000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1405000000 --max 1407000000 --limit 10000 --order asc &
 | 
				
			||||||
# node index --utils lyric --min 1395000000 --max 1397000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1395000000 --max 1397000000 --limit 10000 --order asc &
 | 
				
			||||||
# node index --utils lyric --min 1325000000 --max 1327000000 --limit 10000 --order asc &
 | 
					 | 
				
			||||||
# node index --utils lyric --min 1305000000 --max 1307000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1305000000 --max 1307000000 --limit 10000 --order asc &
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 服务器正在跑
 | 
					# 服务器正在跑
 | 
				
			||||||
@@ -217,9 +213,25 @@ node index --utils lyric --min 1490000000 --max 1495000000 --limit 10000 --order
 | 
				
			|||||||
node index --utils lyric --min 1480000000 --max 1485000000 --limit 10000 --order desc &
 | 
					node index --utils lyric --min 1480000000 --max 1485000000 --limit 10000 --order desc &
 | 
				
			||||||
node index --utils lyric --min 1470000000 --max 1475000000 --limit 10000 --order desc &
 | 
					node index --utils lyric --min 1470000000 --max 1475000000 --limit 10000 --order desc &
 | 
				
			||||||
node index --utils lyric --min 1460000000 --max 1465000000 --limit 10000 --order desc &
 | 
					node index --utils lyric --min 1460000000 --max 1465000000 --limit 10000 --order desc &
 | 
				
			||||||
 | 
					# 右边
 | 
				
			||||||
# node index --utils lyric --min 1890000000 --max 1895000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1890000000 --max 1895000000 --limit 10000 --order asc &
 | 
				
			||||||
# node index --utils lyric --min 1880000000 --max 1885000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1880000000 --max 1885000000 --limit 10000 --order asc &
 | 
				
			||||||
# node index --utils lyric --min 1490000000 --max 1495000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1490000000 --max 1495000000 --limit 10000 --order asc &
 | 
				
			||||||
# node index --utils lyric --min 1480000000 --max 1485000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1480000000 --max 1485000000 --limit 10000 --order asc &
 | 
				
			||||||
# node index --utils lyric --min 1470000000 --max 1475000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1470000000 --max 1475000000 --limit 10000 --order asc &
 | 
				
			||||||
# node index --utils lyric --min 1460000000 --max 1465000000 --limit 10000 --order asc &
 | 
					# node index --utils lyric --min 1460000000 --max 1465000000 --limit 10000 --order asc &
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# 手机正在跑
 | 
				
			||||||
 | 
					cd tools/netease_music/
 | 
				
			||||||
 | 
					# node index --utils lyric --min 1892000000 --max 1893000000 --limit 10000 --order desc &
 | 
				
			||||||
 | 
					node index --utils lyric --min 1882000000 --max 1883000000 --limit 10000 --order desc &
 | 
				
			||||||
 | 
					node index --utils lyric --min 1492000000 --max 1493000000 --limit 10000 --order desc &
 | 
				
			||||||
 | 
					node index --utils lyric --min 1482000000 --max 1483000000 --limit 10000 --order desc &
 | 
				
			||||||
 | 
					node index --utils lyric --min 1472000000 --max 1473000000 --limit 10000 --order desc &
 | 
				
			||||||
 | 
					node index --utils lyric --min 1462000000 --max 1463000000 --limit 10000 --order desc &
 | 
				
			||||||
@@ -93,7 +93,7 @@ async function fetch({ songId }) {
 | 
				
			|||||||
        // console.log(commentInfoList);
 | 
					        // console.log(commentInfoList);
 | 
				
			||||||
        // console.log(userInfoList);
 | 
					        // console.log(userInfoList);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        console.log("dataManager.comment.insertCollection & dataManager.user.insertCollection")
 | 
					        // console.log("dataManager.comment.insertCollection & dataManager.user.insertCollection")
 | 
				
			||||||
        let p1 = dataManager.comment.insertCollection(commentInfoList.map(commentInfo => [
 | 
					        let p1 = dataManager.comment.insertCollection(commentInfoList.map(commentInfo => [
 | 
				
			||||||
            commentInfo.comment_id,
 | 
					            commentInfo.comment_id,
 | 
				
			||||||
            commentInfo.parent_comment_id,
 | 
					            commentInfo.parent_comment_id,
 | 
				
			||||||
@@ -145,7 +145,7 @@ async function fetch({ songId }) {
 | 
				
			|||||||
            current_status: progress.currentStatus,
 | 
					            current_status: progress.currentStatus,
 | 
				
			||||||
            total: progress.total,
 | 
					            total: progress.total,
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        console.log("dataManager.comment_progress.update")
 | 
					        // console.log("dataManager.comment_progress.update")
 | 
				
			||||||
        let p3 = dataManager.comment_progress.update(commentProgressInfo, songId);
 | 
					        let p3 = dataManager.comment_progress.update(commentProgressInfo, songId);
 | 
				
			||||||
        // console.log("UPDATE comment_progress");
 | 
					        // console.log("UPDATE comment_progress");
 | 
				
			||||||
        await p3
 | 
					        await p3
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -55,6 +55,7 @@ async function test() {
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
async function main(args) {
 | 
					async function main(args) {
 | 
				
			||||||
    console.log("neteaseMusic Start fetch ...");
 | 
					    console.log("neteaseMusic Start fetch ...");
 | 
				
			||||||
 | 
					    const cycle = false // 是否循环
 | 
				
			||||||
    while (true) {
 | 
					    while (true) {
 | 
				
			||||||
        // // 删除脏数据
 | 
					        // // 删除脏数据
 | 
				
			||||||
        // var affectedRows1 = await dbUtils.query(`DELETE FROM song_artist_relation WHERE song_id = 0 OR artist_id = 0`, []);
 | 
					        // var affectedRows1 = await dbUtils.query(`DELETE FROM song_artist_relation WHERE song_id = 0 OR artist_id = 0`, []);
 | 
				
			||||||
@@ -64,23 +65,23 @@ async function main(args) {
 | 
				
			|||||||
        switch (args.utils) {
 | 
					        switch (args.utils) {
 | 
				
			||||||
            case 'song':
 | 
					            case 'song':
 | 
				
			||||||
                await songInfoUtils.fetchAll({ args: args });
 | 
					                await songInfoUtils.fetchAll({ args: args });
 | 
				
			||||||
                await sleepUtils.sleep(60 * 1000);
 | 
					                cycle && await sleepUtils.sleep(60 * 1000);
 | 
				
			||||||
                break;
 | 
					                break;
 | 
				
			||||||
            case 'album':
 | 
					            case 'album':
 | 
				
			||||||
                await albumInfoUtils.fetchAll({ args: args });
 | 
					                await albumInfoUtils.fetchAll({ args: args });
 | 
				
			||||||
                await sleepUtils.sleep(30 * 1000);
 | 
					                cycle && await sleepUtils.sleep(30 * 1000);
 | 
				
			||||||
                break;
 | 
					                break;
 | 
				
			||||||
            case 'artist':
 | 
					            case 'artist':
 | 
				
			||||||
                await artistInfoUtils.fetchAll({ args: args });
 | 
					                await artistInfoUtils.fetchAll({ args: args });
 | 
				
			||||||
                await sleepUtils.sleep(30 * 1000);
 | 
					                cycle && await sleepUtils.sleep(30 * 1000);
 | 
				
			||||||
                break;
 | 
					                break;
 | 
				
			||||||
            case 'lyric':
 | 
					            case 'lyric':
 | 
				
			||||||
                await lyricInfoUtils.fetchAll({ args: args });
 | 
					                await lyricInfoUtils.fetchAll({ args: args });
 | 
				
			||||||
                await sleepUtils.sleep(30 * 1000);
 | 
					                cycle && await sleepUtils.sleep(30 * 1000);
 | 
				
			||||||
                break;
 | 
					                break;
 | 
				
			||||||
            case 'comment':
 | 
					            case 'comment':
 | 
				
			||||||
                await commentUtils.fetchAll({ args: args });
 | 
					                await commentUtils.fetchAll({ args: args });
 | 
				
			||||||
                await sleepUtils.sleep(30 * 1000);
 | 
					                cycle && await sleepUtils.sleep(30 * 1000);
 | 
				
			||||||
                break;
 | 
					                break;
 | 
				
			||||||
            case 'playlist':
 | 
					            case 'playlist':
 | 
				
			||||||
                await playlistUtils.fetchTop({ args: args });
 | 
					                await playlistUtils.fetchTop({ args: args });
 | 
				
			||||||
@@ -89,12 +90,17 @@ async function main(args) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            case 'assistant':
 | 
					            case 'assistant':
 | 
				
			||||||
                await assistantUtils.updateWaitTable();
 | 
					                await assistantUtils.updateWaitTable();
 | 
				
			||||||
                await sleepUtils.sleep(20 * 1000);
 | 
					                cycle && await sleepUtils.sleep(20 * 1000);
 | 
				
			||||||
                break;
 | 
					                break;
 | 
				
			||||||
            default:
 | 
					            default:
 | 
				
			||||||
                console.log("utils参数不匹配,退出");
 | 
					                console.log("utils参数不匹配,退出");
 | 
				
			||||||
                return;
 | 
					                return;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if (!cycle) {
 | 
				
			||||||
 | 
					            console.log("完成!");
 | 
				
			||||||
 | 
					            process.exit(0);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user