Authored by ccbikai(👎🏻🍜)

增加调试信息

@@ -2,14 +2,14 @@ @@ -2,14 +2,14 @@
2 const coinModel = require('../models/coin'); 2 const coinModel = require('../models/coin');
3 3
4 exports.sendCoin = (req, res, next) => { 4 exports.sendCoin = (req, res, next) => {
5 - // let data = {  
6 - // code: 403  
7 - // }; 5 + let data = {
  6 + code: 403
  7 + };
8 8
9 - // if (!req.query.token) {  
10 - // data.message = "参数错误!"  
11 - // return res.jsonp(data);  
12 - // } 9 + if (!req.query.token) {
  10 + data.message = "参数错误!"
  11 + return res.jsonp(data);
  12 + }
13 13
14 let uid = req.user.uid; 14 let uid = req.user.uid;
15 15
@@ -27,7 +27,6 @@ exports.sendCoin = (req, res, next) => { @@ -27,7 +27,6 @@ exports.sendCoin = (req, res, next) => {
27 token: req.query.token, 27 token: req.query.token,
28 uid: uid 28 uid: uid
29 }).then((result) => { 29 }).then((result) => {
30 - console.log(result);  
31 res.jsonp(result); 30 res.jsonp(result);
32 }).catch(next); 31 }).catch(next);
33 }; 32 };
@@ -16,15 +16,15 @@ module.exports = { @@ -16,15 +16,15 @@ module.exports = {
16 siteUrl: '//m.yohobuy.com', 16 siteUrl: '//m.yohobuy.com',
17 assetUrl: '//localhost:5001', 17 assetUrl: '//localhost:5001',
18 domains: { 18 domains: {
19 - api: 'http://api.yoho.yohoops.org/',  
20 - service: 'http://service.yoho.yohoops.org/',  
21 - liveApi: 'http://api.live.yoho.cn/',  
22 - singleApi: 'http://single.yoho.cn/' 19 + // api: 'http://api.yoho.yohoops.org/',
  20 + // service: 'http://service.yoho.yohoops.org/',
  21 + // liveApi: 'http://api.live.yoho.cn/',
  22 + // singleApi: 'http://single.yoho.cn/'
23 23
24 - // api: 'http://api-test1.yohops.com:9999/',  
25 - // service: 'http://service-test1.yohops.com:9999/',  
26 - // liveApi: 'http://testapi.live.yohops.com:9999/',  
27 - // singleApi: 'http://api-test1.yohops.com:9999/' 24 + api: 'http://api-test3.yohops.com:9999/',
  25 + service: 'http://service-test3.yohops.com:9999/',
  26 + liveApi: 'http://testapi.live.yohops.com:9999/',
  27 + singleApi: 'http://api-test3.yohops.com:9999/'
28 }, 28 },
29 subDomains: { 29 subDomains: {
30 host: '.m.yohobuy.com', 30 host: '.m.yohobuy.com',