Authored by 邱骏

注册成功页增加登录判断

... ... @@ -53,6 +53,7 @@ module.exports = class extends global.yoho.BaseModel {
* @private
*/
_saveAddressData(params) {
console.log('params:', params);
return this.get({
data: {
method: params.id ? 'app.address.update' : 'app.address.add',
... ...
... ... @@ -86,9 +86,14 @@ class Reg {
templateId = 4166;
}
if (!req.user.uid) {
res.redirect('//m.yohobuy.com');
return;
}
let user_info = {
uid: req.query.uid || req.session.LOGIN_UID_ || 0,
session_key: req.query.session_key || req.session.SESSION_KEY || '',
uid: req.query.uid || req.session.LOGIN_UID_ || req.user.uid.toString() || 0,
session_key: req.query.session_key || req.session.SESSION_KEY || req.user.uid.sessionKey || '',
app_version: req.query.app_version || config.appVersion,
app_client_type: req.query.app_client_type || config.app
};
... ...
... ... @@ -13,9 +13,9 @@ const isTest = process.env.NODE_ENV === 'test3' || process.env.NODE_ENV === 'tes
const domains = {
api: 'http://api.yoho.cn/',
service: 'http://service.yoho.cn/',
// api: 'http://api.yoho.cn/',
//
// service: 'http://service.yoho.cn/',
// yoLuck: 'https://action.yoho.cn',
... ... @@ -28,8 +28,8 @@ const domains = {
// platformApi: 'http://172.16.6.210:8088/',
// api: 'http://api-test3.dev.yohocorp.com/',
// service: 'http://api-test3.dev.yohocorp.com/',
api: 'http://api-test3.dev.yohocorp.com/',
service: 'http://api-test3.dev.yohocorp.com/',
liveApi: 'http://testapi.live.yohops.com:9999/',
singleApi: 'http://api-test3.dev.yohocorp.com/',
ufo: 'http://java-yohoufo-fore.test3.ingress.dev.yohocorp.com/ufo-gateway/',
... ...