暂停注册

This commit is contained in:
chaosBreaking
2019-09-30 19:54:48 +08:00
parent 0de4dc8831
commit 96f10bf378

View File

@@ -69,6 +69,10 @@ module.exports = {
signUpReqInviter: inject(function(SysConfig) {
const { JWT_SECRET, PWD_HASH_SALT } = SysConfig;
return async (req, res) => {
return res.json({
code: 404,
msg: '暂停注册'
});
let { phone, code, inviter, password } = req.body;
if (!phone || !code || !password || !inviter) return res.json({
code: 1,
@@ -238,6 +242,10 @@ module.exports = {
};
}),
sendMsgCode: async (req, res) => {
return res.json({
code: 404,
msg: '暂停注册'
});
// 可作为通用的发送验证码接口
let { phone, type } = req.body;
// 注意此处的type是字面值不是数值应该是例如'signIn'等