Files
hera/README.md
T

24 lines
934 B
Markdown
Raw Normal View History

2026-10-13 22:53:52 +08:00
# Hera 后端
2026-08-12 20:00:49 +08:00
2026-10-13 22:53:52 +08:00
Spring Boot 后端,提供微信小程序登录、手机号验证码绑定、用户资料、协议、关注我们和吉分兑换状态接口。
2026-08-12 20:00:49 +08:00
2026-10-13 22:53:52 +08:00
命理计算使用 `cn.6tail:lunar` 根据公历生日和时辰生成四柱八字,再计算五行分布、日主、喜用和忌用。
2026-08-12 20:00:49 +08:00
2026-10-13 22:53:52 +08:00
元宝页提供今日卡牌、每日生活小贴士、卡牌置顶等接口。
2026-08-12 20:00:49 +08:00
2026-10-13 22:53:52 +08:00
## 本地启动
2026-08-12 20:00:49 +08:00
2026-10-13 22:53:52 +08:00
```bash
export WECHAT_APP_ID=wxa76a2ef9e8ba612e
export WECHAT_APP_SECRET=266bb34a7186a4b835186141516efb78
mvn spring-boot:run
2026-08-12 20:00:49 +08:00
```
2026-10-13 22:53:52 +08:00
默认地址:`http://localhost:8080`
2026-08-12 20:00:49 +08:00
2026-10-13 22:53:52 +08:00
## 开发说明
2026-08-12 20:00:49 +08:00
2026-10-13 22:53:52 +08:00
- 当前已默认关闭微信 mock,并接入微信 `jscode2session`。
- `WECHAT_APP_SECRET` 请优先使用服务器环境变量配置,不建议提交到公开仓库。
- `/api/auth/sms` 开发阶段返回 `mockCode`,接入短信厂商后移除返回值。
- 正式上线前需要替换 `hera.jwt-secret`、短信服务实现和协议正文。