暂停注册
This commit is contained in:
@@ -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'等
|
||||
|
||||
Reference in New Issue
Block a user