From 96f10bf37850d7bc08e1a80dbbcbda0265fbbbb5 Mon Sep 17 00:00:00 2001 From: chaosBreaking Date: Mon, 30 Sep 2019 19:54:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=81=9C=E6=B3=A8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/sign/sign.controller.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/modules/sign/sign.controller.js b/src/modules/sign/sign.controller.js index 697a275..a1e72e5 100644 --- a/src/modules/sign/sign.controller.js +++ b/src/modules/sign/sign.controller.js @@ -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'等