Skip to content

Commit

Permalink
修复因旧仓库失效留下的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
1908002701 committed Apr 11, 2021
1 parent 6aa1c7b commit 6a995e3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/jd_dreamFactory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: jd_dreamFactory
on:
workflow_dispatch:
schedule:
- cron: '11 22,23,0-16 * * *'
- cron: '11 22,23,0-16/2 * * *'
watch:
types: started
repository_dispatch:
Expand Down Expand Up @@ -42,8 +42,8 @@ jobs:
python3 sjys.py
- name: '运行 【京喜工厂】'
run: |
curl https://raw.githubusercontent.com/zero205/JD/main/jd_dreamFactory.js -o jd_dreamFactory.js
curl https://raw.githubusercontent.com/zero205/JD/main/jd_dreamFactory_2.js -o jd_dreamFactory_2.js
curl https://raw.githubusercontent.com/1908002701/JD/main/jd_dreamFactory.js -o jd_dreamFactory.js
curl https://raw.githubusercontent.com/1908002701/JD/main/jd_dreamFactory_2.js -o jd_dreamFactory_2.js
node jd_dreamFactory.js
node jd_dreamFactory_2.js
env:
Expand Down
2 changes: 1 addition & 1 deletion backUp/tencentscf.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
## 4. 配置index.js中secrets变量说明【可不填,建议默认即可】
现在可以通过secret设置自定义index.js中的执行方式,环境变量分别为`TENCENTSCF_SOURCE_TYPE``TENCENTSCF_SOURCE_URL`
`TENCENTSCF_SOURCE_TYPE`值可以选取`local``git``custom`具体含义可查看仓库中的`index.js`文件说明
`TENCENTSCF_SOURCE_URL`格式为包含raw的URL,例如:`https://ghproxy.com/https://raw.githubusercontent.com/zero205/JD/main/``https://gitee.com/zero205/JD/raw/main/`<br>
`TENCENTSCF_SOURCE_URL`格式为包含raw的URL,例如:`https://ghproxy.com/https://raw.githubusercontent.com/1908002701/JD/main/``https://gitee.com/1908002701/JD/raw/main/`<br>


### __重要的说三遍__
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports.main_handler = async (event, context, callback) => {
break;
case 'git':
//2.执行github远端的js文件(因github的raw类型的文件被墙,此方法云函数不推荐)
request(`https://ghproxy.com/https://raw.githubusercontent.com/zero205/JD/main/${v}.js`, function (error, response, body) {
request(`https://ghproxy.com/https://raw.githubusercontent.com/1908002701/JD/main/${v}.js`, function (error, response, body) {
eval(response.body)
})
break;
Expand Down
2 changes: 1 addition & 1 deletion sendNotify.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ if (process.env.PUSH_PLUS_USER) {

async function sendNotify(text, desp, params = {}) {
//提供6种通知
desp += `\n如发现lxk大佬新活动脚本\n请通过issues告知\nhttps://github.com/zero205/JD/issues/new`;
desp += `\n如发现新活动脚本\n请通过issues告知\nhttps://github.com/1908002701/JD/issues/new`;
await Promise.all([
serverNotify(text, desp),//微信server酱
pushPlusNotify(text, desp)//pushplus(推送加)
Expand Down

0 comments on commit 6a995e3

Please sign in to comment.