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

Sunnyangazy patch 1 #375

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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: '30 12,21 * * *'

jobs:
build:
Expand Down
54 changes: 42 additions & 12 deletions config/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,73 @@
const USER_CONFIG = {

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

// 使用微信测试号:公众号APP_SECRET
APP_SECRET: '',
APP_SECRET: '8e5b9b08622323df5bc10b69e13b4b3b',

PROVINCE: '广东',
CITY: '惠州',
PROVINCE: '北京',
CITY: '北京',

USERS: [
{
// 想要发送的人的名字
name: '宝贝',
name: '大玉',
// 使用微信测试号:扫码关注你的微信测试号后生成的一段字符串,在测试号后台能看到
id: '',
id: 'oZ2Pn61C_u1XjzznYqfPp2tRlZ4',
// 使用微信测试号:你想对他发送的模板消息的模板ID
useTemplateId: 'jNgHRuL0J1pOoYe1uDdbNs9ytlYK9r-pyo81iu6snMs',
// 新历生日, 仅用作获取星座运势, 格式必须为MM-DD
horoscopeDate: '02-29',
festivals: [
// 注意:此条配置日期为阴历日期,因为`type`中 “生日” 之前有 * 符号
{
type: '*生日', name: '宝贝', year: '1996', date: '09-09',
},
// 注意:此条配置日期为阳历日期,因为`type`中 “生日” 之前没有 * 符号
{
type: '生日', name: '大宝', year: '1996', date: '09-31',
},
{
type: '节日', name: '相识', year: '2020', date: '11-03',
},
],
// 我们在一起已经有xxxx天了的配置
customizedDateList: [
// 在一起的日子
{ keyword: 'love_day', date: '2022-10-11' },
// 结婚纪念日
{ keyword: 'marry_day', date: '2022-07-29' },
],
},
{
// 想要发送的人的名字
name: '大宝',
// 使用微信测试号:扫码关注你的微信测试号后生成的一段字符串,在测试号后台能看到
id: 'oZ2Pn63aoV6t5hWuzdYlLRHA3rwU',
// 使用微信测试号:你想对他发送的模板消息的模板ID
useTemplateId: '',
useTemplateId: 'jNgHRuL0J1pOoYe1uDdbNs9ytlYK9r-pyo81iu6snMs',
// 新历生日, 仅用作获取星座运势, 格式必须为MM-DD
horoscopeDate: '12-27',
horoscopeDate: '03-04',
festivals: [
// 注意:此条配置日期为阴历日期,因为`type`中 “生日” 之前有 * 符号
{
type: '*生日', name: '宝贝', year: '1996', date: '09-09',
},
// 注意:此条配置日期为阳历日期,因为`type`中 “生日” 之前没有 * 符号
{
type: '生日', name: '李四', year: '1996', date: '09-31',
type: '生日', name: '大宝', year: '1996', date: '09-31',
},
{
type: '节日', name: '相识纪念日', year: '2020', date: '09-03',
type: '节日', name: '相识', year: '2020', date: '11-03',
},
],
// 我们在一起已经有xxxx天了的配置
customizedDateList: [
// 在一起的日子
{ keyword: 'love_day', date: '2022-09-08' },
{ keyword: 'love_day', date: '2022-10-11' },
// 结婚纪念日
{ keyword: 'marry_day', date: '2022-09-09' },
{ keyword: 'marry_day', date: '2022-07-29' },
],
},
],
Expand Down