Authored by yyq

disable test sms send limit

... ... @@ -36,6 +36,8 @@ exports.createApp = async(app) => {
});
}
app.set('etag', false);
app.use('/xianyu/node/status.html', (req, res) => {
res.status(200).end();
});
... ...
... ... @@ -12,6 +12,8 @@ const log = global.yoho.logger;
const sign = global.yoho.sign;
const config = global.yoho.config;
const isProduction = process.env.NODE_ENV === 'production';
const loginPage = '//m.yohobuy.com/signin.html';
const homePage = `${config.siteUrl}/xianyu/index/channel`;
... ... @@ -240,6 +242,7 @@ const bind = {
let info = bind.getBindThirdInfo(bindCode);
if (info.type === 'taobao') {
if (isProduction) {
const timeKey = `${config.app}:bindsms:taobao:${info.openId}`;
let sendTimes = await redis.getAsync(timeKey);
... ... @@ -255,6 +258,7 @@ const bind = {
}
redis.setex(timeKey, 60 * 60 * 2, sendTimes);
}
req.ctx(passportModel).sendTaobaoBindCode(mobile, req.yoho.isAliApp ? 'xianyu' : '').then(res.json).catch(next);
} else {
res.json({
... ...