Merge branch 'qCloud' of git.yoho.cn:fe/yohobuywap-node into qCloud
Showing
4 changed files
with
7 additions
and
5 deletions
@@ -25,7 +25,7 @@ const praiseArticle = (req, res, next) => { | @@ -25,7 +25,7 @@ const praiseArticle = (req, res, next) => { | ||
25 | /* 判断参数是否有效 */ | 25 | /* 判断参数是否有效 */ |
26 | let id = req.body.id, | 26 | let id = req.body.id, |
27 | opt = req.body.opt || 'ok', | 27 | opt = req.body.opt || 'ok', |
28 | - udid = req.sessionID; | 28 | + udid = req.sessionID || require('md5')(req.ip) || 'yoho'; |
29 | 29 | ||
30 | if (!stringProcess.isNumeric(id)) { | 30 | if (!stringProcess.isNumeric(id)) { |
31 | res.json({ code: 400, message: '非法请求', data: '' }); | 31 | res.json({ code: 400, message: '非法请求', data: '' }); |
@@ -17,9 +17,9 @@ module.exports = { | @@ -17,9 +17,9 @@ module.exports = { | ||
17 | siteUrl: '//m.yohobuy.com', | 17 | siteUrl: '//m.yohobuy.com', |
18 | assetUrl: '//localhost:5001', | 18 | assetUrl: '//localhost:5001', |
19 | domains: { | 19 | domains: { |
20 | - api: 'http://api.yoho.yohoops.org/', | ||
21 | - service: 'http://service.yoho.yohoops.org/', | ||
22 | - liveApi: 'http://api.live.yoho.cn/', | 20 | + api: 'http://api.yoho.cn/', |
21 | + service: 'http://service.yoho.cn/', | ||
22 | + liveApi: 'http://api.live.yoho.cn/', | ||
23 | singleApi: 'http://single.yoho.cn/' | 23 | singleApi: 'http://single.yoho.cn/' |
24 | 24 | ||
25 | // api: 'http://api-test1.yohops.com:9999/', | 25 | // api: 'http://api-test1.yohops.com:9999/', |
-
Please register or login to post a comment