2 Star 0 Fork 0

zhousl/autojsScrip

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
jdld.js 27.17 KB
一键复制 编辑 原始数据 按行查看 历史
zhousl 提交于 2023-06-30 00:18 . 11
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100
var myFunc = require("./myCommonFunction.js");
var myWord = require("./myWord");
var now = new Date();
var date = now.getDate();
var month = now.getMonth();
var storage = storages.create(month + '-' + date);
// 免费水果();
// exit();
threads.start(function () {
sleep(720000)
storages.remove(month + '-' + (date - 1));
exit();
});
var b = device.getMusicVolume();
device.setMusicVolume(0);
opreate();
device.setMusicVolume(b);
storages.remove(month + '-' + (date - 1));
exit();
function opreate() {
var ret = myFunc.initNetWork(null, true);
if (ret) {
jingdong();
}
}
function jingdong() {
try {
myFunc.openMyApp("京东");
var a = text("领京豆").findOne(5000);
if (a == null) {
myFunc.tuichuAll()
jingdong();
} else {
shouqian();
myFunc.tuichuAll()
}
} catch (error) {
log(error);
myFunc.tuichuAll()
jingdong();
}
}
// ⑦ 首页更多频道,母婴馆频道,下拉签到
function shouqian() {
// if (!storage.contains('天天红包')) {
// var word = ['沃尔玛', '看病购药'];
// myFunc.tuichuToStr(word);
// sleep(1000)
// if (!myFunc.clickByText('我的')) {
// click(980, 2358);
// }
// sleep(1000)
// myFunc.clickByText('京豆')
// myFunc.clickByText('天天红包');
// 天天红包();
// var word = ['待付款', '待收货'];
// myFunc.tuichuToStr(word);
// sleep(1000)
// if (!myFunc.clickByText('首页')) {
// click(100, 2350);
// }
// sleep(1000)
// }
看病买药();
免费水果();
京东新百货();
// 京东电器();
京东直播();
// 逛();
家电家居();
// 京东秒杀();
return;
sleep(1000)
var a = text('领京豆').findOne(2000).bounds().top - 50;
sleep(500)
swipe(800, a, 100, a, 200)
sleep(1000)
// 京东生鲜();
// 京东国际();
拍拍二手();
京东汽车();
sleep(2000)
swipe(600, a, 200, a, 200)
sleep(1000)
myFunc.textpClick('更多频道');
// swipe(912, a, 100, a, 200)
sleep(1000)
排行榜();
sleep(1000)
scrollDown();
sleep(1000)
新品首发();
sleep(1000)
scrollDown();
sleep(1000)
京东校园();
陪伴计划();
sleep(1000)
scrollDown();
sleep(1000)
scrollDown();
sleep(1000)
scrollDown();
sleep(1000)
京东图书();
医药馆();
sleep(1000)
scrollDown();
sleep(1000)
scrollDown();
sleep(1000)
京东服饰();
美妆馆();
sleep(1000)
scrollDown();
sleep(1000)
scrollDown();
sleep(1000)
五金城();
// 鞋靴馆();
// 箱包馆();
// 智能生活();
// 品牌闪购();
// 京东服务();
// 京东小家电();
// 个护馆();
// myFunc.textpClick('京东时尚');
}
function 天天红包() {
text("去邀请").findOne(10000);
myFunc.clickByText("快去抽奖", 1000);
var statusBut = text("去浏览").find();
var len = statusBut.length;
for (let index = 0; index < len; index++) {
var element = statusBut[index];
// for (let idx = 0; idx < 6; idx++) {
element.click();
sleep(11000);
var word = ['天天红包', '去邀请'];
myFunc.tuichuToStr(word);
sleep(1500);
// }
}
if (len > 0) {
back();
sleep(1000);
myFunc.clickByText('天天红包');
text("去邀请").findOne(10000);
}
var linBut = text("立即领取").find();
var linlen = linBut.length;
for (let index = 0; index < linlen; index++) {
var element = linBut[index];
// for (let idx = 0; idx < 6; idx++) {
element.click();
sleep(800);
// }
}
if (linlen > 0) {
back();
sleep(1000);
myFunc.clickByText('天天红包');
text("去邀请").findOne(10000);
}
var tt = textContains("还剩").findOne(2000).text();
len = parseInt(tt.substring(2, tt.length - 3));
log(tt, len);
for (let index = 0; index <= len; index++) {
click(540, 1155);
sleep(500);
back();
sleep(1000);
myFunc.clickByText('天天红包')
text("去邀请").findOne(10000);
}
if (text("去浏览").findOnce() == null && textContains("还剩0").findOnce() != null) {
storage.put('天天红包', '');
}
}
function 京东电器() {
if (storage.contains('京东电器')) {
return;
}
log("京东电器")
myFunc.textpClick('京东电器');
sleep(2000)
press(115, 405, 100);
sleep(1000)
press(115, 390, 100);
text('第1天').findOne(18000);
var a = text('立即翻牌').findOne(2000);
if (a != null) {
a.click();
sleep(500)
storage.put('京东电器', '')
}
var word = ['领京豆', '首页'];
myFunc.tuichuToStr(word);
}
function 京东新百货() {
if (storage.contains('服饰美妆')) {
// return;
}
log("服饰美妆")
myFunc.textpClick('服饰美妆');
if(storage.contains('服饰美妆签到')) {
sleep(8000);
}else{
var a = textContains('签到').findOne()
myFunc.clickCenter(a)
myFunc.clickByText('我知道了')
sleep(3000);
storage.put('服饰美妆签到', '')
}
click(552, 2314)
sleep(20000);
click(552, 1800)
sleep(2000);
click(918, 2098)
sleep(2000);
var a = 950;
while (true) {
click(867, 950);
sleep(5000);
if (myFunc.findOnce('京东新百货大楼') != null) {
break;
}
myFunc.tuichuToStr('京东新百货大楼')
sleep(1000);
click(867, 950);
sleep(2000);
}
storage.put('服饰美妆', '')
var word = ['领京豆', '首页'];
myFunc.tuichuToStr(word);
}
function 免费水果() {
if (storage.contains('免费水果')) {
return;
}
log("免费水果")
myFunc.textpClick('免费水果');
sleep(2000)
textContains('浇水').findOne(5000);
click(296, 1789);
sleep(1000)
var b = myFunc.findOne('去逛逛');
if(b == null) {
var word = ['领京豆', '首页'];
myFunc.tuichuToStr(word);
免费水果();
}
var b = myFunc.find('去逛逛');
for (let index = 0; index < b.length; index++) {
myFunc.clickCenter(b[index]);
sleep(7000)
myFunc.tuichuToStr('水滴', 1000, true);
sleep(1000)
}
b = myFunc.find('去领取');
for (let index = b.length -1; index >= 0; index--) {
myFunc.clickCenter(b[index]);
sleep(1000)
}
b = myFunc.find('领取');
for (let index = b.length -1; index >= 0; index--) {
myFunc.clickCenter(b[index]);
sleep(1000)
}
storage.put('免费水果', '')
var word = ['领京豆', '首页'];
myFunc.tuichuToStr(word);
}
function () {
if (storage.contains('')) {
return;
}
log("")
// myFunc.textpClick('京东电器');
click(740, 3033)
sleep(2000)
click(1110, 215)
textContains('看内容').findOne(5000);
var a = textContains('每日签到').findOne(2000);
if (a != null) {
a.click();
sleep(2500)
back();
sleep(1000)
}
var b = textContains('去看看').find();
for (let index = 0; index < b.length; index++) {
b[index].click();
sleep(1500)
back();
sleep(1000)
}
if (textContains('鉴赏').findOnce() != null && textContains('每日签到').findOnce() == null && textContains('去看看').findOnce() == null) {
storage.put('', '')
}
var word = ['领京豆', '首页'];
myFunc.tuichuToStr(word);
myFunc.clickByText('首页');
}
function 京东服饰() {
if (storage.contains('京东服饰')) {
return;
}
log("京东服饰")
myFunc.clickByText('京东服饰');
sleep(4000)
myWord.findClickWord('签到领京豆');
// click(950, 1900)
sleep(3000)
var a = text('签到').findOne(3000);
if (a != null) {
a.click();
storage.put('京东服饰', '')
}
var word = ['更多频道', '我关注的'];
myFunc.tuichuToStr(word);
}
function 京东秒杀() {
if (storage.contains('京东秒杀')) {
return;
}
log("京东秒杀")
// myFunc.textpClick('京东秒杀');
myWord.findClickWord('京东秒杀');
// click(200, 2118)
sleep(3000)
click(707, 3033)
sleep(5000)
var a = text('签到').findOne(2000);
if (a != null) {
a.click();
storage.put('京东秒杀', '')
}
var word = ['领京豆', '首页'];
myFunc.tuichuToStr(word);
}
function 家电家居() {
if (storage.contains('家电家居')) {
// return;
}
var a = text('领京豆').findOne(2000).bounds().top - 50;
sleep(500)
while(1) {
var b = myFunc.findOnce('更多频道');
if(b != null) {
myFunc.pClick(b);
break;
}
swipe(800, a, 100, a, 200);
sleep(800);
}
log("家电家居")
sleep(2000);
// myFunc.textpClick('小家电馆');
click(430, 361);
sleep(8000)
click(552, 2314)
myFunc.findOne('第1天', 5000)
sleep(1000)
click(554, 1184);
sleep(1000)
click(554, 1184);
sleep(1000)
click(555, 1180)
sleep(1000);
var rest = myWord.getAllword();
if(myWord.clickWord('去浏览', rest)){
sleep(3000)
myFunc.tuichuToStr('天天签到领京豆');
sleep(1000)
click(554, 1184);
sleep(1000)
}
myWord.clickWord('领取', rest);
sleep(1000);
myWord.clickWord('去加购', null, 1, false);
sleep(2000);
var jiagou = myWord.find('立即加购');
for (let index = 0; index < jiagou.length; index++) {
var element = jiagou[index];
myWord.clickLocation(element.bounds)
sleep(2000);
myFunc.tuichuToStr('天天签到领京豆')
}
storage.put('家电家居', '');
// sleep(500);
// click(875, 900);
// sleep(1000);
// click(555, 1180)
// sleep(1000);
// for (let index = 0; index < 6; index++) {
// myWord.clickWord('去浏览', rest);
// sleep(2000);
// myFunc.tuichuToStr('天天签到领京豆')
// }
var word = ['小家电馆', '首页'];
myFunc.tuichuToStr(word);
}
function 京东直播() {
if (storage.contains('京东直播')) {
return;
}
log("京东直播")
var local = myWord.findWordLocation('直播');
if (local != null) {
myWord.clickLocation(local);
sleep(1000);
back();
sleep(1000);
myWord.clickLocation(local);
}
// myFunc.textpClick('京东直播');
// click(870, 2082)
sleep(3000)
// myFunc.textpClick('每日福利', 5000);
click(900, 192)
var a = text('签到看直播').findOne(5000);
if (a != null) {
a.click();
}
a = text('去看看').findOne(2000);
if (a != null) {
var kan = text('去看看').find();
if (kan.length > 1) {
var len = kan.length - 1;
for (let index = 0; index < len; index++) {
var b = kan[index];
b.click();
sleep(65000);
back();
sleep(3000)
b.click();
sleep(2000);
myFunc.clickText('确认')
sleep(1000);
}
}
a = text('去看看').findOne(2000);
for (let index = 0; index < 2; index++) {
a.click();
sleep(35000 * (index + 1));
back();
sleep(3000)
a.click();
sleep(2000);
myFunc.clickText('确认')
sleep(1000);
}
}
var b = text('去分享').findOne(2000);
if (b != null) {
for (let index = 0; index < 2; index++) {
b.click();
sleep(4000)
//点分享按钮
click(858, 160)
sleep(1000);
openWeixinHaoyou();
sleep(5000);
back();
sleep(2000);
b.click();
sleep(2000);
myFunc.clickText('确认')
sleep(1000);
}
}
if (text('已签到').findOnce() != null
&& text('去分享').findOnce() == null
&& text('去看看').findOnce() == null ) {
storage.put('京东直播', '')
}
var word = ['领京豆', '首页'];
myFunc.tuichuToStr(word);
}
function 京东生鲜() {
if (storage.contains('京东生鲜')) {
return;
}
log("京东生鲜")
myFunc.textpClick('京东生鲜');
text('精选').findOne(5000);
sleep(1000)
if (!myWord.findOneClick('', 2)) {
click(110, 588)
}
textContains('任务').findOne(5000);
click(745, 1928)
sleep(2000)
// back()
sleep(2000)
myWord.findClickWord('明日再来');
var a = text('去浏览').findOne(5000);
if (a != null) {
for (let index = 0; index < 2; index++) {
a.click();
sleep(10000)
back()
sleep(1000)
a.click();
sleep(1000)
click(745, 1928)
sleep(500)
}
}
if (text('已完成').find().length == 2 && textContains('0次').findOnce()) {
storage.put('京东生鲜', '')
}
var word = ['领京豆', '首页'];
myFunc.tuichuToStr(word);
}
function 看病买药() {
if (storage.contains('看病买药')) {
return;
}
log("看病买药")
myFunc.textpClick('看病买药');
sleep(5000)
click(550, 1780)
sleep(5000)
click(550, 2291)
sleep(5000)
if(myFunc.findOnce('更多京豆', true) == null) {
var word = ['分类', '我的'];
myFunc.tuichuToStr(word);
sleep(1000)
click(550, 2291)
sleep(5000)
}
if(myFunc.findOnce('0/1', true) != null) {
log('去加购');
myFunc.clickByText('去加购');
sleep(2000);
back();
sleep(3000);
} else if(myFunc.findOnce('继续领更多京豆') != null) {
myFunc.clickByText('继续领更多京豆');
if(myFunc.findOnce('0/1', true) != null) {
log('去加购');
myFunc.clickByText('去加购');
sleep(2000);
back();
sleep(3000);
}
}
var b = myFunc.find('领奖励');
if(b.length > 0) {
for (let c of b) {
myFunc.clickCenter(c);
sleep(3000)
}
storage.put('看病买药', '')
}
var word = ['领京豆', '首页'];
myFunc.tuichuToStr(word);
}
function 京东国际() {
if (storage.contains('京东国际')) {
return;
}
log("京东国际")
myFunc.textpClick('京东国际');
myFunc.findOne('国际好券', 5000);
click(1290, 1522);
var a = text('签到').findOne(5000);
if (a != null) {
a.click();
sleep(800);
storage.put('京东国际', '')
}
var word = ['领京豆', '首页'];
myFunc.tuichuToStr(word);
}
function 拍拍二手() {
if (storage.contains('拍拍二手')) {
return;
}
log("拍拍二手")
myFunc.textpClick('拍拍二手');
text('手机').findOne(5000);
sleep(1000)
click(78, 338)
sleep(1000)
var a = text('签到').findOne(5000);
if (a != null) {
a.click();
sleep(800);
storage.put('拍拍二手', '')
}
var word = ['沃尔玛', '拍拍二手'];
myFunc.tuichuToStr(word);
}
function 陪伴计划() {
if (storage.contains('陪伴计划')) {
return;
}
log("陪伴计划")
myFunc.clickByText('陪伴计划');
sleep(5000);
var word = ['更多频道', '我关注的'];
myFunc.tuichuToStr(word);
sleep(1000);
myFunc.clickByText('陪伴计划');
text('生活服务').findOne(18000);
sleep(2000);
if (!myWord.findClickWord('')) {
// click(1179, 1200)
sleep(1000);
click(977, 1660)
}
var a = text('签到').findOne(5000);
if (a != null) {
a.click();
sleep(800);
storage.put('陪伴计划', '')
}
var word = ['更多频道', '我关注的'];
myFunc.tuichuToStr(word);
}
function 京东校园() {
if (storage.contains('京东校园')) {
return;
}
log("京东校园")
myFunc.clickByText('京东校园');
// text('京东校园').findOne(10000);
sleep(5000);
click(980, 1750)
var a = text('签到').findOne(5000);
if (a != null) {
a.click();
sleep(800);
storage.put('京东校园', '')
}
var word = ['更多频道', '我关注的'];
myFunc.tuichuToStr(word);
}
function 医药馆() {
if (storage.contains('医药馆')) {
return;
}
log("医药馆")
myFunc.clickByText('医药馆');
textContains("健康").findOne(5000);
sleep(3000);
// if (!myWord.findOneClick('签到', 2)) {
// click(545, 3046)
// }
var a = text('签到').findOne(5000);
if (a != null) {
a.click();
sleep(500);
storage.put('医药馆', '')
}
var word = ['更多频道', '我关注的'];
myFunc.tuichuToStr(word);
}
function 智能生活() {
if (storage.contains('智能生活')) {
return;
}
log("智能生活")
myFunc.clickByText('智能生活');
textContains("智慧").findOne(5000);
sleep(3000);
if (!myWord.findOneClick('签到', 2)) {
click(1339, 1545)
}
var a = text('签到').findOne(5000);
if (a != null) {
a.click();
sleep(500);
storage.put('智能生活', '')
}
var word = ['更多频道', '我关注的'];
myFunc.tuichuToStr(word);
}
function 排行榜() {
if (storage.contains('排行榜')) {
return;
}
log("排行榜")
myFunc.clickByText('排行榜');
textContains("热卖榜").findOne(5000);
click(977, 1924);
var piao = textContains("每个主题").findOne(8000);
if (textContains('剩0票').findOnce() != null) {
storage.put('排行榜', '')
} else {
var len = parseInt(piao.text().substring(piao.text().length - 2, piao.text().length - 1));
sleep(2000);
for (let index = 0; index < len; index++) {
click(540, 1920);
sleep(5000);
if (textContains("无货").findOne(1000)) {
back();
sleep(500);
}
back();
sleep(3000);
}
if (textContains('剩0票').findOnce() != null) {
storage.put('排行榜', '')
}
}
var word = ['更多频道', '我关注的'];
myFunc.tuichuToStr(word);
}
function 五金城() {
if (storage.contains('五金城')) {
return;
}
log("五金城")
myFunc.clickByText('京东五金城');
sleep(4000);
click(992, 1443);
var a = text('签到').findOne(5000);
if (a != null) {
a.click();
sleep(500);
storage.put('五金城', '')
}
var word = ['更多频道', '我关注的'];
myFunc.tuichuToStr(word);
}
function 京东服务() {
if (storage.contains('京东服务')) {
return;
}
log("京东服务")
myFunc.clickByText('京东服务');
var a = text('签到').findOne(5000);
if (a != null) {
a.click();
sleep(500);
storage.put('京东服务', '')
}
var word = ['更多频道', '我关注的'];
myFunc.tuichuToStr(word);
}
function 京东小家电() {
if (storage.contains('京东小家电')) {
return;
}
log("京东小家电")
myFunc.clickByText('京东小家电');
sleep(10000);
if (myWord.findClickWord('签到') || myFunc.clickText('签到', 2000, false, true)) {
sleep(500);
storage.put('京东小家电', '');
}
var word = ['领京豆', '首页'];
myFunc.tuichuToStr(word);
}
function 美妆馆() {
if (storage.contains('美妆馆')) {
return;
}
log("美妆馆")
myFunc.clickByText('美妆馆');
text("首页").findOne(5000);
sleep(1000)
click(540, 2328);
sleep(6000);
var a = textContains('签到').findOne(5000);
if (a != null) {
a.click();
sleep(500);
storage.put('美妆馆', '');
}
sleep(500)
back();
sleep(500)
var word = ['更多频道', '我关注的'];
myFunc.tuichuToStr(word);
}
function 京东汽车() {
if (storage.contains('京东汽车')) {
return;
}
log("京东汽车")
myFunc.clickByText('买车养车');
sleep(3000);
back();
sleep(1000);
myFunc.clickByText('买车养车');
sleep(5000);
click(1000, 282)
sleep(4000);
var a = text('签到').findOne(5000);
if (a != null) {
a.click();
sleep(500);
storage.put('京东汽车', '');
}
var word = ['更多频道', '我关注的'];
myFunc.tuichuToStr(word);
}
function 个护馆() {
if (storage.contains('个护馆')) {
return;
}
log("个护馆")
myFunc.clickByText('个护馆');
sleep(5000);
if (!myWord.findClickWord('签到', 1, false)) {
click(440, 3012)
}
textContains('关注').findOne(6000);
var a = textContains('立即翻牌').findOne(1000);
if (a != null) {
a.click();
sleep(500);
storage.put('个护馆', '');
}
sleep(500)
back();
sleep(500)
var word = ['领京豆', '首页'];
myFunc.tuichuToStr(word);
}
function 品牌闪购() {
if (storage.contains('品牌闪购')) {
return;
}
log("品牌闪购")
if (!myFunc.clickByText('品牌闪购')) {
myWord.findClickWord('品牌闪购');
}
sleep(5000);
click(1235, 3060)
sleep(1000);
textContains('花100闪币抽奖').findOne(4000);
if (textContains('还有0').findOnce() != null && text('去完成').findOnce() == null) {
storage.put('品牌闪购', '');
var word = ['更多频道', '我关注的'];
myFunc.tuichuToStr(word);
return;
}
var idx = 0;
var but = myFunc.findOnce('去完成');;
while (but != null) {
myFunc.clickByText('去完成');
sleep(4000);
myFunc.tuichuToStr('花100闪币抽奖');
sleep(1000);
but = myFunc.findOnce('去完成');
idx = idx + 1;
if (idx > 20) {
break;
}
}
while (but != null) {
myFunc.clickByText('去完成');
sleep(7000);
myFunc.tuichuToStr('花100闪币抽奖');
sleep(1000);
but = myFunc.findOnce('去完成');
idx = idx + 1;
if (idx > 30) {
break;
}
}
for (let index = 0; index < 10; index++) {
myFunc.textCpClick('抽奖');
sleep(1000)
}
if (textContains('还有0').findOnce() != null && text('去完成').findOnce() == null) {
storage.put('品牌闪购', '');
}
var word = ['更多频道', '我关注的'];
myFunc.tuichuToStr(word);
}
function 新品首发() {
if (storage.contains('新品首发')) {
return;
}
log("新品首发")
myFunc.clickByText('新品首发');
text('精选').findOne(5000);
if (!myWord.findClickWord('集魔')) {
if (!myWord.findClickWord('赢大')) {
click(997, 1714)
}
}
sleep(3000);
for (let index = 0; index < 3; index++) {
click(809, 1984);
sleep(500);
}
sleep(500);
myFunc.clickByText('立即签到');
sleep(500);
myWord.findClickWord('开心收下')
sleep(500);
myWord.findClickWord('收集')
renwu()
var word = ['更多频道', '我关注的'];
myFunc.tuichuToStr(word);
}
function 京东图书() {
if (storage.contains('京东图书')) {
return;
}
log("京东图书")
myFunc.clickByText('京东图书');
sleep(5000);
click(1000, 340);
sleep(1000);
var a = text('签到').findOne(4000);
if (a != null) {
a.click();
sleep(500);
storage.put('京东图书', '');
}
var word = ['更多频道', '我关注的'];
myFunc.tuichuToStr(word);
}
function 箱包馆() {
if (storage.contains('箱包馆')) {
return;
}
log("箱包馆")
myFunc.clickByText('箱包馆');
text('箱包').findOne(5000);
sleep(1000);
var a = text('签到').findOne(4000);
if (a != null) {
a.click();
sleep(500);
storage.put('箱包馆', '');
}
var word = ['更多频道', '我关注的'];
myFunc.tuichuToStr(word);
}
function 鞋靴馆() {
if (storage.contains('鞋靴馆')) {
return;
}
log("鞋靴馆")
myFunc.clickByText('鞋靴馆');
var a = text('签到').findOne(10000);
if (a != null) {
a.click();
sleep(500);
storage.put('鞋靴馆', '');
}
var word = ['更多频道', '我关注的'];
myFunc.tuichuToStr(word);
}
function renwu() {
var bt = text('去完成').findOne(5000);
if (bt == null && textContains('做任务').findOnce() != null) {
storage.put('新品首发', '');
return;
}
bt.click();
sleep(3000);
if (textContains('浏览').findOne(1000) != null) {
sleep(8000);
back();
sleep(1000);
} else if (textContains('并加购').findOne(1000) != null) {
for (let index = 0; index < 4; index++) {
textContains('并加购').clickable(true).findOne(2000).click();
if (textContains("无货").findOne(1000)) {
back();
sleep(500);
}
sleep(1000);
back();
sleep(1000);
}
back();
sleep(1000);
} else if (textContains('会员').findOne(1000) != null) {
sleep(1000);
back();
sleep(1000);
return;
} else {
sleep(2000);
back();
sleep(1000);
}
renwu()
}
function openWeixinHaoyou() {
myFunc.clickCenter(text('微信好友').findOne(5000));
sleep(1500);
if (textContains("通讯录").findOne(1000) == null) {
var mima = textContains("密码").findOne(1000);
if (mima != null) {
mima.click();
// textContains("密码").findOnce().click();
sleep(1000);
for (a of '751654') {
desc(a).findOnce().click();
sleep(400);
}
}
sleep(2000);
back();
}
// if (textContains("通讯录").findOne(1000) == null) {
// myFunc.log("微信输密码");
// var a = textContains("微信").find()[1];
// myFunc.clickCenter(a);
// sleep(1000);
// if (textContains("通讯录").findOne(1000) == null) {
// var mima = textContains("密码").findOne(1000);
// if (mima != null) {
// mima.click();
// textContains("密码").findOnce().click();
// sleep(1500);
// textContains("忘记密码").findOne(1000);
// sleep(1000);
// click(260, 2700);
// sleep(1000);
// click(740, 2460);
// sleep(1000);
// click(260, 2200);
// sleep(1000);
// click(1200, 2460);
// }
// sleep(2000);
// back();
// }
// }
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/zhousl7516/autojs-scrip.git
git@gitee.com:zhousl7516/autojs-scrip.git
zhousl7516
autojs-scrip
autojsScrip
master

搜索帮助