代码拉取完成,页面将自动刷新
/**
* cron: 59 23 * * 0
*/
import {requireConfig} from "./TS_USER_AGENTS";
import {bean, farm, pet, factory, sgmh, jxfactory, health} from "./utils/shareCodesTool";
let cookie: string = '', UserName: string, index: number
let beans: string = '', farms: string = '', healths: string = '', pets: string = '', factorys: string = '', jxfactorys: string = '', sgmhs: string = '', s: string = '';
!(async () => {
let cookiesArr: string[] = await requireConfig();
for (let i = 0; i < cookiesArr.length; i++) {
cookie = cookiesArr[i];
UserName = decodeURIComponent(cookie.match(/pt_pin=([^;]*)/)![1])
index = i + 1;
console.log(`\n开始【京东账号${index}】${UserName}\n`);
s = await bean(cookie)
s ? beans += s + '&' : ''
console.log('种豆得豆:', s)
s = await farm(cookie)
s ? farms += s + '&' : ''
console.log('东东农场:', s)
s = await health(cookie)
s ? healths += s + '&' : ''
console.log('京东健康:', s)
s = await pet(cookie)
s ? pets += s + '&' : ''
console.log('东东萌宠:', s)
s = await factory(cookie)
s ? factorys += s + '&' : ''
console.log('东东工厂:', s)
s = await jxfactory(cookie)
s ? jxfactorys += s + '&' : ''
console.log('京喜工厂:', s)
s = await sgmh(cookie)
s ? sgmhs += s + '&' : ''
console.log('闪购盲盒:', s)
}
console.log('/bean', beans.substring(0, beans.length - 1))
console.log('/farm', farms.substring(0, farms.length - 1))
console.log('/health', healths.substring(0, healths.length - 1))
console.log('/pet', pets.substring(0, pets.length - 1))
console.log('/factory', factorys.substring(0, factorys.length - 1))
console.log('/jxfactory', jxfactorys.substring(0, jxfactorys.length - 1))
console.log('/sgmh', sgmhs.substring(0, sgmhs.length - 1))
})()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。