1 Star 1 Fork 863

小光/jdTools

forked from danwangshimoluo/jdTools 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jdPetShareCodes.js 2.27 KB
一键复制 编辑 原始数据 按行查看 历史
danwangshimoluo 提交于 2021-05-19 21:11 . 迁移
/*
东东萌宠互助码
此文件为Node.js专用。其他用户请忽略
支持京东N个账号
*/
//云服务器腾讯云函数等NOde.js用户在此处填写东东萌宠的好友码。
// 同一个京东账号的好友互助码用@符号隔开,不同京东账号之间用&符号或者换行隔开,下面给一个示例
// 如: 京东账号1的shareCode1@京东账号1的shareCode2&京东账号2的shareCode1@京东账号2的shareCode2
let PetShareCodes = [
//账号一的好友shareCode,不同好友的shareCode中间用@符号隔开
'MTAxODc2NTEzOTAwMDAwMDAxMzYyMDk5Mw==@MTAxODc2NTEzMDAwMDAwMDAxMTY3OTk2OQ==@MTE1NDQ5OTIwMDAwMDAwMzkxODgwNDc=@MTAxODc2NTEzNTAwMDAwMDAzMTg1NjY1OQ==@MTE1NDUyMjEwMDAwMDAwMzkyNjE2OTc=@MTAxNzIxMDc1MTAwMDAwMDA0ODE0MTIxNw==@MTE1NDQ5OTUwMDAwMDAwMzkxODgwNTU=@MTE1NDQ5OTUwMDAwMDAwNDI5Nzk4MDU=@MTE1NDQ5OTUwMDAwMDAwMzkxODgwNTU=@MTE1NDUwMTI0MDAwMDAwMDQ1MzE5MTI5@MTAxODc2NTEzOTAwMDAwMDAxMzYyMDk5Mw==@MTAxODc2NTEzMDAwMDAwMDAxMTY3OTk2OQ==',
//账号二的好友shareCode,不同好友的shareCode中间用@符号隔开
'MTAxODc2NTEzOTAwMDAwMDAxMzYyMDk5Mw==@MTAxODc2NTEzMDAwMDAwMDAxMTY3OTk2OQ==@MTE1NDQ5OTIwMDAwMDAwMzkxODgwNDc=@MTAxODc2NTEzNTAwMDAwMDAzMTg1NjY1OQ==@MTE1NDUyMjEwMDAwMDAwMzkyNjE2OTc=@MTAxNzIxMDc1MTAwMDAwMDA0ODE0MTIxNw==@MTE1NDQ5OTUwMDAwMDAwMzkxODgwNTU=@MTE1NDQ5OTUwMDAwMDAwNDI5Nzk4MDU=@MTE1NDQ5OTUwMDAwMDAwMzkxODgwNTU=@MTE1NDUwMTI0MDAwMDAwMDQ1MzE5MTI5@MTAxODc2NTEzOTAwMDAwMDAxMzYyMDk5Mw==@MTAxODc2NTEzMDAwMDAwMDAxMTY3OTk2OQ==',
]
// 判断github action里面是否有东东萌宠互助码
if (process.env.PETSHARECODES) {
if (process.env.PETSHARECODES.indexOf('&') > -1) {
console.log(`您的东东萌宠互助码选择的是用&隔开\n`)
PetShareCodes = process.env.PETSHARECODES.split('&');
} else if (process.env.PETSHARECODES.indexOf('\n') > -1) {
console.log(`您的东东萌宠互助码选择的是用换行隔开\n`)
PetShareCodes = process.env.PETSHARECODES.split('\n');
} else {
PetShareCodes = process.env.PETSHARECODES.split();
}
} else if (process.env.JD_COOKIE) {
console.log(`由于您secret里面未提供助力码,故此处运行将会给脚本内置的码进行助力,请知晓!`)
}
for (let i = 0; i < PetShareCodes.length; i++) {
const index = (i + 1 === 1) ? '' : (i + 1);
exports['PetShareCode' + index] = PetShareCodes[i];
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/h1989101/jdTools.git
git@gitee.com:h1989101/jdTools.git
h1989101
jdTools
jdTools
JdScripts

搜索帮助