...
|
...
|
@@ -127,6 +127,27 @@ const startingService = (req, res) => { |
|
|
});
|
|
|
};
|
|
|
|
|
|
const activateService = (req, res, next) => {
|
|
|
installmentModel.activateService({
|
|
|
uid: req.user.uid,
|
|
|
userName: req.body.userName,
|
|
|
identityCardNo: req.body.identityCardNo,
|
|
|
cardNo: req.body.cardNo,
|
|
|
mobile: req.body.mobile,
|
|
|
snsCheckCode: req.body.snsCheckCode
|
|
|
}).then((result)=> {
|
|
|
res.json(result);
|
|
|
}).catch(next);
|
|
|
};
|
|
|
|
|
|
const getBankInfo = (req, res, next) => {
|
|
|
installmentModel.getBankInfo({
|
|
|
cardNo: req.query.cardNo
|
|
|
}).then((result)=> {
|
|
|
res.json(result);
|
|
|
}).catch(next);
|
|
|
};
|
|
|
|
|
|
const verifyCode = (req, res, next) => {
|
|
|
installmentModel.sendVerifyCode(req.user.uid, req.body.mobile).then((result)=> {
|
|
|
res.json(result);
|
...
|
...
|
@@ -137,5 +158,7 @@ module.exports = { |
|
|
index,
|
|
|
review,
|
|
|
startingService,
|
|
|
verifyCode
|
|
|
activateService,
|
|
|
verifyCode,
|
|
|
getBankInfo
|
|
|
}; |
...
|
...
|
|