Authored by 陈峰

senttype

... ... @@ -289,6 +289,7 @@ class ActWheelSurfModelRedis extends global.yoho.BaseModel {
sendResult.data = sendResult.data || {};
sendMessage(0, {}, {succeedTimes: sendResult.data.amount || 0}, 0);
logger.info(`app.redpac.addRedpac=>uid: ${uid}, ${JSON.stringify(sendResult || {})}`);
if (sendResult.code === 200) {
if (!sendResult.data.amount) {
sendResult.code = 201; // 重复领取
... ... @@ -312,6 +313,7 @@ class ActWheelSurfModelRedis extends global.yoho.BaseModel {
sendMessage(1, {}, {succeedTimes: 1}, 0);
logger.info(`app.coupons.couponsSend=>uid: ${uid}, ${JSON.stringify(sendResult || {})}`);
if (sendResult && sendResult.code === 200) {
getPrize.desc = '恭喜您获得' + getPrize.name + '优惠券';
}
... ... @@ -331,13 +333,15 @@ class ActWheelSurfModelRedis extends global.yoho.BaseModel {
data: {
method: 'ufo.coupons.send',
uid: uid,
coupon_tokens: getPrize.value
coupon_tokens: getPrize.value,
sendType: 2
},
api: UfoApi
});
sendMessage(1, {}, {succeedTimes: 1}, 0);
logger.info(`ufo.coupons.send=>uid: ${uid}, ${JSON.stringify(sendResult || {})}`);
if (sendResult && sendResult.code === 200) {
getPrize.desc = '恭喜您获得' + getPrize.name + '优惠券';
}
... ...
... ... @@ -20,14 +20,15 @@ module.exports = {
// yohoVerifyUdid: '0f626ede-0e17-460b-a8ea-069ee506e8e9',
domains: {
// api: 'http://api-test3.dev.yohocorp.com/',
// service: 'http://api-test3.dev.yohocorp.com/',
// singleApi: 'http://api-test3.yohops.com:9999/',
api: 'http://api-test3.dev.yohocorp.com/',
service: 'http://api-test3.dev.yohocorp.com/',
singleApi: 'http://api-test3.yohops.com:9999/',
ufo: 'http://java-yohoufo-fore.test3.ingress.dev.yohocorp.com/ufo-gateway/',
singleApi: 'http://api.yoho.cn/',
api: 'http://api.yoho.cn/',
service: 'http://service.yoho.cn/',
ufo: 'http://2.yohobuy.com',
// singleApi: 'http://api.yoho.cn/',
// api: 'http://api.yoho.cn/',
// service: 'http://service.yoho.cn/',
// ufo: 'http://2.yohobuy.com',
store: 'http://192.168.102.47:8080/portal-gateway/wechat/',
serviceNotify: 'http://service.yoho.cn/',
platformApi: 'http://172.16.6.210:8088/',
... ...