Authored by 毕凯

完善券ID解密

... ... @@ -40,7 +40,7 @@ class CouponList extends global.yoho.BaseModel {
}
receive(params) {
if (params.couponid) {
if (params.couponid && !_.isNumber(params.couponid)) {
params.couponid = hashids.decode(params.couponid)[0];
}
let options = {
... ...
... ... @@ -11,8 +11,8 @@ const isProduction = process.env.NODE_ENV === 'production';
const isTest = process.env.NODE_ENV === 'test';
const domains = {
api: 'http://api-test3.yohops.com:9999/',
service: 'http://service-test3.yohops.com:9999/',
api: 'http://api.yoho.cn/',
service: 'http://service.yoho.cn/',
liveApi: 'http://testapi.live.yohops.com:9999/',
singleApi: 'http://api-test3.yohops.com:9999/',
imSocket: 'ws://socket.yohobuy.com:10240',
... ... @@ -74,7 +74,7 @@ module.exports = {
maxFiles: 7
},
console: {
level: 'info',
level: 'debug',
colorize: 'all',
prettyPrint: true
}
... ...