//开始工作... console.show(); console.log("开始工作..."); //随机 25-55 秒 上滑 minNum = 25; maxNum = 55; //点赞比例 5% //屏幕宽+高 dw = device.width; dh = device.height; for(let i = 1;i<10000;i++){ //随机滑动x作标 x1 = Math.floor(Math.random() * dw/2); x2 = Math.floor(Math.random() * dw/2); y1 = dh * ( 0.65 + Math.floor(Math.random() * 20 )/100 ); y2 = dh * ( 0.1 + Math.floor(Math.random() * 10 )/100 ); //取随机的休眠数 slpNum = Math.floor(Math.random() * ( maxNum - minNum ) ) + minNum; mySleep( slpNum ); //随机点赞 5% if( Math.floor(Math.random() * 100) < 6 ){ likeVideo(); console.log("点赞一次..."); device.vibrate(1000); } //上滑 swipe( x1, y1, x2, y2 ,500); } alert("OK"); //休眠 function mySleep( num ){ for(let i = 1;i