Authored by ccbikai(👎🏻🍜)

增加调试信息

... ... @@ -2,14 +2,14 @@
const coinModel = require('../models/coin');
exports.sendCoin = (req, res, next) => {
// let data = {
// code: 403
// };
let data = {
code: 403
};
// if (!req.query.token) {
// data.message = "参数错误!"
// return res.jsonp(data);
// }
if (!req.query.token) {
data.message = "参数错误!"
return res.jsonp(data);
}
let uid = req.user.uid;
... ... @@ -27,7 +27,6 @@ exports.sendCoin = (req, res, next) => {
token: req.query.token,
uid: uid
}).then((result) => {
console.log(result);
res.jsonp(result);
}).catch(next);
};
... ...
... ... @@ -16,15 +16,15 @@ module.exports = {
siteUrl: '//m.yohobuy.com',
assetUrl: '//localhost:5001',
domains: {
api: 'http://api.yoho.yohoops.org/',
service: 'http://service.yoho.yohoops.org/',
liveApi: 'http://api.live.yoho.cn/',
singleApi: 'http://single.yoho.cn/'
// api: 'http://api.yoho.yohoops.org/',
// service: 'http://service.yoho.yohoops.org/',
// liveApi: 'http://api.live.yoho.cn/',
// singleApi: 'http://single.yoho.cn/'
// api: 'http://api-test1.yohops.com:9999/',
// service: 'http://service-test1.yohops.com:9999/',
// liveApi: 'http://testapi.live.yohops.com:9999/',
// singleApi: 'http://api-test1.yohops.com:9999/'
api: 'http://api-test3.yohops.com:9999/',
service: 'http://service-test3.yohops.com:9999/',
liveApi: 'http://testapi.live.yohops.com:9999/',
singleApi: 'http://api-test3.yohops.com:9999/'
},
subDomains: {
host: '.m.yohobuy.com',
... ...