Showing
5 changed files
with
13 additions
and
12 deletions
@@ -18,8 +18,7 @@ let channels = { | @@ -18,8 +18,7 @@ let channels = { | ||
18 | exports.promotion = (req, res, next) => { | 18 | exports.promotion = (req, res, next) => { |
19 | let uid = req.user.uid, | 19 | let uid = req.user.uid, |
20 | isApp = req.yoho.isApp, | 20 | isApp = req.yoho.isApp, |
21 | - contentCode = req.app.locals.isProduction ? 'b2b5cde8144aff3073573c3b323344ab' : | ||
22 | - 'fa046a09b7c2c0e06927162404d95111'; // 产品线上线下配的资源码不一样 | 21 | + contentCode = 'b2b5cde8144aff3073573c3b323344ab'; |
23 | 22 | ||
24 | req.ctx(expandModel).promotionData(uid, isApp, contentCode).then(result => { | 23 | req.ctx(expandModel).promotionData(uid, isApp, contentCode).then(result => { |
25 | res.render('expand-new/my-promotion', { | 24 | res.render('expand-new/my-promotion', { |
@@ -100,8 +99,7 @@ exports.friendInvite = (req, res, next) => { | @@ -100,8 +99,7 @@ exports.friendInvite = (req, res, next) => { | ||
100 | let page = req.query.page || 1; | 99 | let page = req.query.page || 1; |
101 | let isApp = req.yoho.isApp; | 100 | let isApp = req.yoho.isApp; |
102 | let inciteCode = req.query.inviteCode; | 101 | let inciteCode = req.query.inviteCode; |
103 | - let contentCode = req.app.locals.isProduction ? '319f92c4b072c3c40ea4cb4499b78bb4' : | ||
104 | - 'bc31b5d58b5af4e3999e8b994fb2bbc1'; | 102 | + let contentCode = '319f92c4b072c3c40ea4cb4499b78bb4'; |
105 | 103 | ||
106 | req.ctx(expandModel).friendInvite(inciteCode, yhChannel, limit, page, contentCode).then(result => { | 104 | req.ctx(expandModel).friendInvite(inciteCode, yhChannel, limit, page, contentCode).then(result => { |
107 | res.render('expand-new/friend-invite', { | 105 | res.render('expand-new/friend-invite', { |
@@ -21,7 +21,8 @@ exports.index = (req, res, next) => { | @@ -21,7 +21,8 @@ exports.index = (req, res, next) => { | ||
21 | let params = { | 21 | let params = { |
22 | uid: req.user.uid, | 22 | uid: req.user.uid, |
23 | channel: req.query.channel || 1, | 23 | channel: req.query.channel || 1, |
24 | - udid: require('yoho-md5')(req.ip) | 24 | + udid: require('yoho-md5')(req.ip), |
25 | + contentCode: 'b2b5cde8144aff3073573c3b323344ab' | ||
25 | }; | 26 | }; |
26 | 27 | ||
27 | let studentSwitch = !_.get(req.app.locals.wap, 'user.removeStudentIdentification', true); | 28 | let studentSwitch = !_.get(req.app.locals.wap, 'user.removeStudentIdentification', true); |
@@ -5,8 +5,7 @@ const tideCommandModel = require('../models/tide-command'); | @@ -5,8 +5,7 @@ const tideCommandModel = require('../models/tide-command'); | ||
5 | 5 | ||
6 | exports.tideCommand = (req, res, next) => { | 6 | exports.tideCommand = (req, res, next) => { |
7 | let uid = req.user.uid, | 7 | let uid = req.user.uid, |
8 | - contentCode = req.app.locals.isProduction ? '29958987ef0c0f830fad03d7e54f6061' : | ||
9 | - '29958987ef0c0f830fad03d7e5'; | 8 | + contentCode = '29958987ef0c0f830fad03d7e54f6061'; |
10 | 9 | ||
11 | req.ctx(tideCommandModel).invitionData(uid, contentCode).then(result => { | 10 | req.ctx(tideCommandModel).invitionData(uid, contentCode).then(result => { |
12 | res.render('tide-command', { | 11 | res.render('tide-command', { |
@@ -123,9 +123,9 @@ const _getCode = (uid) => { | @@ -123,9 +123,9 @@ const _getCode = (uid) => { | ||
123 | }); | 123 | }); |
124 | }; | 124 | }; |
125 | 125 | ||
126 | -const _getTrendPop = () => { | 126 | +const _getTrendPop = (contentCode) => { |
127 | return service.get('operations/api/v5/resource/get', { | 127 | return service.get('operations/api/v5/resource/get', { |
128 | - content_code: 'fa046a09b7c2c0e06927162404d95111', | 128 | + content_code: contentCode, |
129 | }).then(result => { | 129 | }).then(result => { |
130 | if (result && result.code === 200 && result.data) { | 130 | if (result && result.code === 200 && result.data) { |
131 | return result.data[0]; | 131 | return result.data[0]; |
@@ -163,7 +163,7 @@ const index = (params) => { | @@ -163,7 +163,7 @@ const index = (params) => { | ||
163 | _getAddressData(params), | 163 | _getAddressData(params), |
164 | _getRes(), | 164 | _getRes(), |
165 | _getCode(params.uid), | 165 | _getCode(params.uid), |
166 | - _getTrendPop() | 166 | + _getTrendPop(params.contentCode) |
167 | ]).then(result => { | 167 | ]).then(result => { |
168 | if (result[0] && result[0].data) { | 168 | if (result[0] && result[0].data) { |
169 | Object.assign(finalResult, { | 169 | Object.assign(finalResult, { |
@@ -11,14 +11,17 @@ const isProduction = process.env.NODE_ENV === 'production'; | @@ -11,14 +11,17 @@ const isProduction = process.env.NODE_ENV === 'production'; | ||
11 | const isTest = process.env.NODE_ENV === 'test'; | 11 | const isTest = process.env.NODE_ENV === 'test'; |
12 | 12 | ||
13 | const domains = { | 13 | const domains = { |
14 | - api: 'http://192.168.103.59:8080/gateway', | ||
15 | - service: 'http://192.168.103.59:8080/gateway', | 14 | + // api: 'http://192.168.103.59:8080/gateway', |
15 | + // service: 'http://192.168.103.59:8080/gateway', | ||
16 | 16 | ||
17 | // api: 'http://api-test3.yohops.com:9999/', | 17 | // api: 'http://api-test3.yohops.com:9999/', |
18 | // service: 'http://service-test3.yohops.com:9999/', | 18 | // service: 'http://service-test3.yohops.com:9999/', |
19 | 19 | ||
20 | // api: 'http://api.yoho.cn/', | 20 | // api: 'http://api.yoho.cn/', |
21 | // service: 'http://service.yoho.cn/', | 21 | // service: 'http://service.yoho.cn/', |
22 | + | ||
23 | + api: 'http://api.gray.yohops.com', | ||
24 | + service: 'http://service.gray.yohops.com', | ||
22 | singleApi: 'http://api-test3.yohops.com:9999/', | 25 | singleApi: 'http://api-test3.yohops.com:9999/', |
23 | global: 'http://global-test-soa.yohops.com:9999', | 26 | global: 'http://global-test-soa.yohops.com:9999', |
24 | liveApi: 'http://testapi.live.yohops.com:9999/', | 27 | liveApi: 'http://testapi.live.yohops.com:9999/', |
-
Please register or login to post a comment