2 Star 1 Fork 27

kevin/jd_scripts

forked from XanderYe/jd_scripts 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
jd_getShareCodes.ts 973 Bytes
一键复制 编辑 原始数据 按行查看 历史
kevin 提交于 2021-11-23 10:04 . edit
/**
* cron: 59 23 * * 0
*/
import {requireConfig} from "./TS_USER_AGENTS";
import {bean, farm, pet, factory, sgmh, jxfactory, health, cash} from "./utils/shareCodesTool";
let cookie: string = '', UserName: string, index: number;
!(async () => {
let cookiesArr: any = 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`);
console.log('种豆得豆:', await bean(cookie))
console.log('东东农场:', await farm(cookie))
console.log('京东健康:', await health(cookie))
console.log('东东萌宠:', await pet(cookie))
console.log('东东工厂:', await factory(cookie))
console.log('京喜工厂:', await jxfactory(cookie))
console.log('闪购盲盒:', await sgmh(cookie))
console.log('领现金呀:', await cash(cookie))
}
})()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kevin0217/jd_scripts.git
git@gitee.com:kevin0217/jd_scripts.git
kevin0217
jd_scripts
jd_scripts
master

搜索帮助