Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zero205 committed Apr 5, 2021
1 parent 89acb03 commit 3f0bcfc
Show file tree
Hide file tree
Showing 19 changed files with 168 additions and 68 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/jd_z_super5g.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: jd_z_super5g

on:
workflow_dispatch:
schedule:
- cron: '6 22,0-16/5 * * *'
watch:
types: started
repository_dispatch:
types: jd_z_super5g
jobs:
build:

runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache node_modules
uses: actions/cache@v2 # 使用 GitHub 官方的缓存 Action。
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('package-lock.json') }} # 使用 package-lock.json 的 Hash 作为缓存的 key。也可以使用 package.json 代替
- name: npm install
run: |
npm install
- name: '运行 【5G超级盲盒】'
run: |
node jd_z_super5g.js
env:
JD_COOKIE: ${{ secrets.JD_COOKIE }}
PUSH_PLUS_TOKEN: ${{ secrets.PUSH_PLUS_TOKEN }}
PUSH_PLUS_USER: ${{ secrets.PUSH_PLUS_USER }}
IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY }}
QYWX_KEY: ${{ secrets.QYWX_KEY }}
QYWX_AM: ${{ secrets.QYWX_AM }}
JD_DEBUG: ${{ secrets.JD_DEBUG }}
PUSH_KEY: ${{ secrets.PUSH_KEY }}
BARK_PUSH: ${{ secrets.BARK_PUSH }}
BARK_SOUND: ${{ secrets.BARK_SOUND }}
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
TG_USER_ID: ${{ secrets.TG_USER_ID }}
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}
Z_SUPER5G_NOTIFY: ${{ secrets.Z_SUPER5G_NOTIFY }}
2 changes: 1 addition & 1 deletion .github/workflows/jd_z_xmf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: jd_z_xmf
on:
workflow_dispatch:
schedule:
- cron: '10 2 1-3 4 *'
- cron: '10 2 4-6 4 *'
watch:
types: started
repository_dispatch:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ exports.main_handler = async (event, context, callback) => {
})
break;
default:
//执行github远端的js文件
request(`https://ghproxy.com/https://raw.githubusercontent.com/zero205/JD/main/${v}.js`, function (error, response, body) {
eval(response.body)
})
//执行自己上传的js文件
delete require.cache[require.resolve('./'+v+'.js')];
require('./'+v+'.js')
break;
}
}
Expand Down
5 changes: 3 additions & 2 deletions jd_carnivalcity.js

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions jd_dpqd.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,26 @@ let vender=''
let num=0
let shopname=''
const token=[
'F2FA870C86F2BDC5B11B92A7DC671256',//4.1日添加20天66
'F2FA870C86F2BDC5B11B92A7DC671256',//4.1日添加20天66
'7C1820082C993AB3103EB02E1B5AEC39',//4.1日添加18天20
'6CF6DE5D1AFE8E45652C30458DEEAA4E',//4.1日添加7天10
'5923488026EC4B52DB11E9D5CB75BBA9',//4.1日添加7天10
'43D8744137B24C95DDA15BB7AE0CDF6F',//4.1日添加7天10
'1D2F4BD7D6F73DD7473B2ADF1E154BC6',//4.1日添加10天20
'AB8B120EB16A090179AE4ED13C36B29D',//4.1日添加6天2 13天5
'31F79F4424A50A0F83D0E7C8E2527E64',//4.1日添加3天3 7天5
'17AABB287E29B0CCE7AEDFD502463782',//4.2日添加3天3 5天5 10天10
'2C0B1ABD512B71663DB6BA85B1C4E6A9',//4.2日添加3天3 5天5
'4C676E07FEDABA47B86766F4C367C21F',//4.2日添加7天5
'E88C4CD1927118269703DDCA03D991A1',//4.2日添加7天50
'2CEE37FA49014FA58BD32D42998300D4',//4.2日添加7天30
'4F14F96E9CB62BF8523F26F2BDC97941',//4.2日添加3天20
'7230153017ACC87413B9BAA97C64E38B',//4.2日添加5天50
'FC52E985D2781510BB4AF3DB067286C1',//4.2日添加5天20
'A8E250725F8C34653D0D683F2FFC9C65',//4.2日添加7天50 15天100
'7CCC19AA3F4AD64EB02EA927F57D6A2A',//4.2日添加3天3
'978FCCE248F3E5EB1763F86057B55D68',//4.3日添加15天100
'81A2FD6866BD26CB65101E930F1972C3',//4.3日添加3天10 7天100
'F5A40B662D4025FDB822694ECCB552BB',//4.3日添加3天10
'7EDA3ADB3DC353CEFC2DE11160D4EA9A&',//4.4日添加2天2 4天3 6天5 7天10
]
//IOS等用户直接用NobyDa的jd cookie

Expand Down
56 changes: 32 additions & 24 deletions jd_dreamFactory.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jd_jxnc2.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 1 addition & 25 deletions jd_mohe.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ async function getAward() {
break;
}
}
if (message) allMessage += `京东账号${$.index} ${$.nickName}\n${message}抽奖详情查看 https://isp5g.m.jd.com/#/myPrize${$.index !== cookiesArr.length ? '\n\n' : ''}`
// if (message) allMessage += `京东账号${$.index} ${$.nickName}\n${message}抽奖详情查看 https://isp5g.m.jd.com/#/myPrize${$.index !== cookiesArr.length ? '\n\n' : ''}`
} else {
console.log(`目前热力值${total},不够抽奖`)
}
Expand Down Expand Up @@ -542,30 +542,6 @@ function taskurl(url) {
}
}
}
function updateShareCodesCDN(url = 'https://gitee.com/lxk0301/updateTeam/raw/master/shareCodes/jd_shareCodes.json') {
return new Promise(resolve => {
$.get({
url ,
timeout: 10000,
headers:{"User-Agent": $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1")}}, async (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)
console.log(`${$.name} API请求失败,请检查网路重试`)
} else {
$.updatePkActivityIdRes = JSON.parse(data);
if ($.updatePkActivityIdRes && $.updatePkActivityIdRes.length) {
$.shareId = $.updatePkActivityIdRes;
}
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve();
}
})
})
}
function updateShareCodesCDN(url = 'https://ghproxy.com/https://raw.githubusercontent.com/zero205/updateTeam/master/shareCodes/jd_shareCodes.json') {
return new Promise(resolve => {
$.get({
Expand Down
8 changes: 5 additions & 3 deletions jd_redPacket.js

Large diffs are not rendered by default.

59 changes: 59 additions & 0 deletions jd_z_super5g.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions jd_z_xmf.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3f0bcfc

Please sign in to comment.