From 8aa117508e5e10dd53f95be11f42f57502cea821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=A0=E5=8D=87?= <11654456+no-litres@user.noreply.gitee.com> Date: Wed, 21 Sep 2022 17:00:10 +0000 Subject: [PATCH] update src/main/resources/application.properties. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 无升 <11654456+no-litres@user.noreply.gitee.com> --- src/main/resources/application.properties | 65 ++++++++++------------- 1 file changed, 27 insertions(+), 38 deletions(-) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 199ea92..acd418e 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,38 +1,27 @@ -# 注意等号后面不要加空格 -spring.application.name=weixin.tuisong -logging.level.root=info - -# 端口号 -server.port=9999 - -# 微信公众号信息 微信公众号后台找 -wechat.appId=xxxx -wechat.secret=xxxx - -# 微信模板 微信公众号里新建 模板内容可以贴 wechat-push/src/main/resources/templates/模板.txt -wechat.templateId=xxxx - - -# 推送目标微信id -# 访问 http://127.0.0.1:9999/push 可以给这个id推送,定时也是给这个id推送 -target.openId=xxxx -# 推送测试目标微信id -# 访问 http://127.0.0.1:9999/push/test 可以给这个id推送 -target.test.openId=xxxx - -# 领证日期 -target.linZheng=2023-05-20 -# 生日 -target.shengRi=2022-12-01 -# 结婚日期 -target.jieHun=2023-05-20 -# 恋爱日期 -target.lianAi=2015-11-07 - -# 百度天气 https://lbsyun.baidu.com/apiconsole/center#/home -weather.ak=xxxx -# 地区编码 各地区见doc/weather_district_id.xlsx -weather.district_id=110107 - -# 天行彩虹屁 https://www.tianapi.com/apiview/181 -tian.caihongpi.key=xxxxx +{ +# 公众号配置 +# 公众号appId +"app_id": "wx7bb3caba4686fac9", +# 公众号appSecret +"app_secret": "7751995c8b7a7a6359c817f8499c7a57", +# 模板消息id +"template_id": "MFm9gBKIunUrnLsUQyAfMUM8NBisd7ZNk_a7pAk1XhI", +# 接收公众号消息的微信号,如果有多个,需要在[]里用英文逗号间隔,例如["wx1", "wx2"] +"user": ["o4G8j56k2Ps_qfEhftV0bxaSm2xE"], + +# 信息配置 +# 和风天气apikey +"weather_key": "e0c0288a9063466b9c7ed8023dc51391", +# 所在地区,可为省,城市,区,县,同时支持国外城市,例如伦敦 +"region": "昌黎", +# 生日1,修改名字为对应需要显示的名字,如果生日为农历,在最前面加上r即可 +"birthday1": {"name": "张亚坤", "birthday": "2001-01-04"}, +# 生日2 +"birthday2": {"name": "无升", "birthday": "2001-02-27"}, +# 在一起的日子,格式同上,暂不不支持农历 +"love_date": "2022-01-01", +# 金句中文,如果设置了,则会显示这里的,如果为空,默认会读取金山的每日金句 +"note_ch": "", +# 金句英文 +"note_en": "" +} -- Gitee