...
|
...
|
@@ -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({
|
...
|
...
|
|