fix: 注册接口不再接受客户端 app,管理员身份改按 role 判定
客户端可在 /user/register 的 app 入参写入 wxapp-escort-admin 键自封管理员;改为注册忽略 app,管理员身份统一由 utils 判定 role。conf.json 含微信密钥与库口令,移出版本控制。
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
{
|
||||
"port": 9010,
|
||||
"app": {
|
||||
"wxapp-escort": {
|
||||
"appid": "wxf73c79e16837af07",
|
||||
"secret": "5a061d65f4d35d19e62e83b98f6c63cf"
|
||||
},
|
||||
"wxapp-escort-admin": {
|
||||
"appid": "wxf94dd97b91af09a2",
|
||||
"secret": "79ba226684740830af0029763d3045f0"
|
||||
}
|
||||
},
|
||||
"mongodb": {
|
||||
"str": "mongodb://huashengtec.com:6000",
|
||||
"host": "huashengtec.com",
|
||||
"db": "health",
|
||||
"option": {
|
||||
"user": "ehason",
|
||||
"pass": "Ehason_dbuser_2026",
|
||||
"dbName": "eiot_user",
|
||||
"authSource": "admin",
|
||||
"autoIndex": true,
|
||||
"socketTimeoutMS": 3000,
|
||||
"serverSelectionTimeoutMS": 30000
|
||||
},
|
||||
"debug": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user