fix: 注册接口不再接受客户端 app,管理员身份改按 role 判定
客户端可在 /user/register 的 app 入参写入 wxapp-escort-admin 键自封管理员;改为注册忽略 app,管理员身份统一由 utils 判定 role。conf.json 含微信密钥与库口令,移出版本控制。
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
/node_modules/
|
||||
/logs/
|
||||
.env
|
||||
# 含微信 AppSecret 与数据库口令,只允许外置在服务器上,禁止入库
|
||||
conf.json
|
||||
|
||||
Reference in New Issue
Block a user