Merge branch 'master' of http://git.yoho.cn/fe/yohobuy-node
Showing
3 changed files
with
7 additions
and
20 deletions
@@ -76,9 +76,11 @@ const Auth = { | @@ -76,9 +76,11 @@ const Auth = { | ||
76 | return Auth.profile(uid).then((userInfo) => { | 76 | return Auth.profile(uid).then((userInfo) => { |
77 | let token = sign.makeToken(uid); | 77 | let token = sign.makeToken(uid); |
78 | let data = userInfo.data; | 78 | let data = userInfo.data; |
79 | + let encryptionUid = aes.encryptionUid(data.uid); | ||
80 | + | ||
79 | 81 | ||
80 | if (data) { | 82 | if (data) { |
81 | - let uidCookie = `{data.profile_name}::${data.uid}::${data.vip_info.title}::${token}`; | 83 | + let uidCookie = `{data.profile_name}::${encryptionUid}::${data.vip_info.title}::${token}`; |
82 | let isStudent = data.vip_info.is_student || 0; | 84 | let isStudent = data.vip_info.is_student || 0; |
83 | 85 | ||
84 | req.session._TOKEN = token; | 86 | req.session._TOKEN = token; |
@@ -40,15 +40,7 @@ module.exports = { | @@ -40,15 +40,7 @@ module.exports = { | ||
40 | retries: 0 | 40 | retries: 0 |
41 | }, | 41 | }, |
42 | interfaceShunt: { | 42 | interfaceShunt: { |
43 | - useInterfaceShunt: false, | ||
44 | - tencentServers: { | ||
45 | - api: ['123.206.1.98', '123.206.2.80'], | ||
46 | - service: ['123.206.1.98', '123.206.2.80'] | ||
47 | - }, | ||
48 | - awsServers: { | ||
49 | - api: 'app-java-168863769.cn-north-1.elb.amazonaws.com.cn', | ||
50 | - service: 'service-yoho-579825100.cn-north-1.elb.amazonaws.com.cn' | ||
51 | - } | 43 | + open: false |
52 | }, | 44 | }, |
53 | loggers: { | 45 | loggers: { |
54 | infoFile: { | 46 | infoFile: { |
@@ -100,15 +92,8 @@ if (isProduction) { | @@ -100,15 +92,8 @@ if (isProduction) { | ||
100 | useOneapm: true, | 92 | useOneapm: true, |
101 | useCache: true, | 93 | useCache: true, |
102 | interfaceShunt: { | 94 | interfaceShunt: { |
103 | - useInterfaceShunt: false, | ||
104 | - tencentServers: { | ||
105 | - api: ['123.206.1.98', '123.206.2.80'], | ||
106 | - service: ['123.206.1.98', '123.206.2.80'] | ||
107 | - }, | ||
108 | - awsServers: { | ||
109 | - api: 'app-java-168863769.cn-north-1.elb.amazonaws.com.cn', | ||
110 | - service: 'service-yoho-579825100.cn-north-1.elb.amazonaws.com.cn' | ||
111 | - } | 95 | + open: true, |
96 | + url: 'http://123.206.2.55/strategy' | ||
112 | } | 97 | } |
113 | }); | 98 | }); |
114 | } else if (isTest) { | 99 | } else if (isTest) { |
@@ -59,7 +59,7 @@ | @@ -59,7 +59,7 @@ | ||
59 | "uuid": "^2.0.2", | 59 | "uuid": "^2.0.2", |
60 | "winston": "^2.2.0", | 60 | "winston": "^2.2.0", |
61 | "winston-daily-rotate-file": "^1.1.4", | 61 | "winston-daily-rotate-file": "^1.1.4", |
62 | - "yoho-node-lib": "0.0.40" | 62 | + "yoho-node-lib": "0.0.46" |
63 | }, | 63 | }, |
64 | "devDependencies": { | 64 | "devDependencies": { |
65 | "autoprefixer": "^6.3.6", | 65 | "autoprefixer": "^6.3.6", |
-
Please register or login to post a comment