Authored by wenjiekong

手机验证接口1

... ... @@ -228,7 +228,7 @@ exports.sendEmailSuccess = (req, res, next) => {
* 点击邮箱验证链接方法--修改验证邮箱
*/
exports.mailResult = (req, res, next) => {
let uid = '8039836';
// 真实数据输出
accountService.mailResult(req.query, res).then(result => {
res.json(result);
... ... @@ -238,10 +238,11 @@ exports.mailResult = (req, res, next) => {
/**
* 分-检查手机号是否可修改-ajax
*/
exports.checkMobile = (req, res, next) => {
exports.checkMobile = (req, res, next) => {
let uid = '8039836';
// 真实数据输出
accountService.checkMobile(req.query, uid).then(result => {
res.json(result);
}).catch(next);
};
\ No newline at end of file
};
... ...
... ... @@ -650,7 +650,7 @@
if (check.code === 200) {
let data = yield accountApi.modifyVerifyEmail(code);
console.info(data);
if (data.code === 200) {
res.redirect(helpers.urlFormat('localhost:6002/home/account/email',
{step: 3, success: true}));
... ...
... ... @@ -188,7 +188,7 @@ router.get('/account/sendemailsuccess', [getCommonHeader, getHomeNav], AccountCo
router.get('/account/mailresult', [getCommonHeader, getHomeNav], AccountController.mailResult);
router.post('/account/checkmobile', AccountController.checkMobile);
router.post('/account/checkmobile', AccountController.checkMobile);
router.get('/favorite', FavoriteController.index);
... ...