Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1111 #342

Open
wants to merge 46 commits into
base: master
Choose a base branch
from
Open

1111 #342

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
0a7aeaa
Update index.cjs
1289586153 Jan 9, 2023
6897728
Update weixin-push-on-time.yml
1289586153 Jan 9, 2023
af2160b
Update weixin-push-on-time.yml
1289586153 Jan 9, 2023
6456591
Update index.cjs
1289586153 Jan 9, 2023
160b968
Update index.cjs
1289586153 Jan 9, 2023
7bee7a4
Update index.cjs
1289586153 Jan 9, 2023
297a2ae
Update index.cjs
1289586153 Jan 10, 2023
508f100
Update index.cjs
1289586153 Jan 13, 2023
af5ee80
Update weixin-push-on-time.yml
1289586153 Jan 13, 2023
32634b1
Update index.cjs
1289586153 Jan 13, 2023
3b4f39b
Update index.cjs
1289586153 Jan 13, 2023
1adf976
Update index.cjs
1289586153 Jan 13, 2023
2ca6b59
Update index.cjs
1289586153 Jan 13, 2023
1821734
Update index.cjs
1289586153 Jan 13, 2023
cab5864
Update index.cjs
1289586153 Jan 13, 2023
9e69bed
Update index.cjs
1289586153 Jan 13, 2023
d5a3fd2
Update index.cjs
1289586153 Jan 13, 2023
aa2b869
Update index.cjs
1289586153 Jan 13, 2023
2612627
Update index.cjs
1289586153 Jan 13, 2023
fcb55a8
Update index.cjs
1289586153 Jan 13, 2023
889ac58
Update index.cjs
1289586153 Jan 13, 2023
ef031cb
Update index.cjs
1289586153 Jan 13, 2023
1709642
Update index.cjs
1289586153 Jan 13, 2023
524b0b6
Update index.cjs
1289586153 Jan 13, 2023
a1e860e
Update index.cjs
1289586153 Jan 14, 2023
5febae1
Update index.cjs
1289586153 Jan 14, 2023
90abad8
Update index.cjs
1289586153 Jan 14, 2023
d612b62
Update index.cjs
1289586153 Jan 14, 2023
e0bfec8
Update index.cjs
1289586153 Jan 14, 2023
6a0accc
Update index.cjs
1289586153 Jan 25, 2023
d1c5194
Update index.cjs
1289586153 Feb 8, 2023
27d9aa7
Update index.cjs
1289586153 Feb 13, 2023
e9fb3e5
Update index.cjs
1289586153 Feb 27, 2023
b1afcc8
Update index.cjs
1289586153 Feb 27, 2023
282cf3a
Update index.cjs
1289586153 Feb 27, 2023
cbfbe3d
Update index.cjs
1289586153 Feb 27, 2023
8fe3b14
Update index.cjs
1289586153 Feb 27, 2023
c0f2a60
Update index.cjs
1289586153 Feb 27, 2023
3b6ca90
Update index.cjs
1289586153 Mar 13, 2023
7c3bf0c
Update index.cjs
1289586153 Mar 15, 2023
78dd8b5
Merge pull request #1 from wangxinleo/master
1289586153 Jun 10, 2023
b174231
Update index.cjs
1289586153 Jun 10, 2023
88e91af
Update index.cjs
1289586153 Jun 10, 2023
679855a
Update weixin-push-on-time.yml
1289586153 Jun 10, 2023
83425d1
Update index.cjs
1289586153 Jun 10, 2023
b1c0f20
Update index.cjs
1289586153 Jun 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/weixin-push-on-time.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:
schedule:
# 每天国际时间 23:30 运行, 即北京时间 7:30 运行
- cron: '30 23 * * *'
- cron: '27 22 * * *'

jobs:
build:
Expand Down
55 changes: 35 additions & 20 deletions config/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,60 +8,75 @@
const USER_CONFIG = {

// 使用微信测试号:公众号APP_ID
APP_ID: '',
APP_ID: 'wx775648c194be5508',

// 使用微信测试号:公众号APP_SECRET
APP_SECRET: '',
APP_SECRET: '1ccfda75c9e3e36c0a932cbedfd74761',

PROVINCE: '广东',
CITY: '惠州',
PROVINCE: ' ',
CITY: '福清市',

USERS: [
{
// 想要发送的人的名字
name: '宝贝',
name: '林七七',
// 使用微信测试号:扫码关注你的微信测试号后生成的一段字符串,在测试号后台能看到
id: '',
id: 'oZIu45htGZ5HPECg66amBXj3LJfQ',
// 使用微信测试号:你想对他发送的模板消息的模板ID
useTemplateId: '',
useTemplateId: 'jtEQ3pWsOHVCoRPNbC0v6xCm3n2SlfQVo3KRnJVzeiI',
// 新历生日, 仅用作获取星座运势, 格式必须为MM-DD
horoscopeDate: '12-27',
horoscopeDate: '12-17',
festivals: [
// 注意:此条配置日期为阴历日期,因为`type`中 “生日” 之前有 * 符号
{
type: '*生日', name: '宝贝', year: '1996', date: '09-09',
type: '*生日', name: '海星', year: '1997', date: '11-18',
},
// 注意:此条配置日期为阳历日期,因为`type`中 “生日” 之前没有 * 符号
{
type: '生日', name: '李四', year: '1996', date: '09-31',
type: '*生日', name: '林七七小仙女', year: '1998', date: '06-18',
},
{
type: '节日', name: '相识纪念日', year: '2020', date: '09-03',
type: '节日', name: '06.24', year: '2010', date: '06-24',
},
],
// 我们在一起已经有xxxx天了的配置
customizedDateList: [
// 在一起的日子
{ keyword: 'love_day', date: '2022-09-08' },
// 结婚纪念日
{ keyword: 'marry_day', date: '2022-09-09' },
},
{
// 想要发送的人的名字
name: '吴海星',
// 使用微信测试号:扫码关注你的微信测试号后生成的一段字符串,在测试号后台能看到
id: 'oZIu45vv-UTdygfiyvvyul3GmWBs',
// 使用微信测试号:你想对他发送的模板消息的模板ID
useTemplateId: 'jtEQ3pWsOHVCoRPNbC0v6xCm3n2SlfQVo3KRnJVzeiI',
// 新历生日, 仅用作获取星座运势, 格式必须为MM-DD
horoscopeDate: '12-17',
festivals: [
// 注意:此条配置日期为阴历日期,因为`type`中 “生日” 之前有 * 符号
{
type: '*生日', name: '海星', year: '1997', date: '11-18',
},
// 注意:此条配置日期为阳历日期,因为`type`中 “生日” 之前没有 * 符号
{
type: '*生日', name: '林七七小仙女', year: '1998', date: '06-18',
},
{
type: '节日', name: '06.24', year: '2010', date: '06-24',
},
],
},
],


// 【推送完成提醒】模板id, 用来看自己有没有发送成功的那个模板
CALLBACK_TEMPLATE_ID: '',
CALLBACK_TEMPLATE_ID: 'a5DkqvKoJYeTNnpGEu7R5Nopx9EuhpSAdbKqX7RIzCY',

CALLBACK_USERS: [
{
name: '自己',
// 使用微信测试号:自己的微信id,扫码关注你的微信测试号后生成的一段字符串,在测试号后台能看到
id: '',
id: 'oZIu45vv-UTdygfiyvvyul3GmWBs',
}
],

}

module.exports = USER_CONFIG