|
@@ -289,6 +289,7 @@ class ActWheelSurfModelRedis extends global.yoho.BaseModel { |
|
@@ -289,6 +289,7 @@ class ActWheelSurfModelRedis extends global.yoho.BaseModel { |
289
|
sendResult.data = sendResult.data || {};
|
289
|
sendResult.data = sendResult.data || {};
|
290
|
sendMessage(0, {}, {succeedTimes: sendResult.data.amount || 0}, 0);
|
290
|
sendMessage(0, {}, {succeedTimes: sendResult.data.amount || 0}, 0);
|
291
|
|
291
|
|
|
|
292
|
+ logger.info(`app.redpac.addRedpac=>uid: ${uid}, ${JSON.stringify(sendResult || {})}`);
|
292
|
if (sendResult.code === 200) {
|
293
|
if (sendResult.code === 200) {
|
293
|
if (!sendResult.data.amount) {
|
294
|
if (!sendResult.data.amount) {
|
294
|
sendResult.code = 201; // 重复领取
|
295
|
sendResult.code = 201; // 重复领取
|
|
@@ -312,6 +313,7 @@ class ActWheelSurfModelRedis extends global.yoho.BaseModel { |
|
@@ -312,6 +313,7 @@ class ActWheelSurfModelRedis extends global.yoho.BaseModel { |
312
|
|
313
|
|
313
|
sendMessage(1, {}, {succeedTimes: 1}, 0);
|
314
|
sendMessage(1, {}, {succeedTimes: 1}, 0);
|
314
|
|
315
|
|
|
|
316
|
+ logger.info(`app.coupons.couponsSend=>uid: ${uid}, ${JSON.stringify(sendResult || {})}`);
|
315
|
if (sendResult && sendResult.code === 200) {
|
317
|
if (sendResult && sendResult.code === 200) {
|
316
|
getPrize.desc = '恭喜您获得' + getPrize.name + '优惠券';
|
318
|
getPrize.desc = '恭喜您获得' + getPrize.name + '优惠券';
|
317
|
}
|
319
|
}
|
|
@@ -331,13 +333,15 @@ class ActWheelSurfModelRedis extends global.yoho.BaseModel { |
|
@@ -331,13 +333,15 @@ class ActWheelSurfModelRedis extends global.yoho.BaseModel { |
331
|
data: {
|
333
|
data: {
|
332
|
method: 'ufo.coupons.send',
|
334
|
method: 'ufo.coupons.send',
|
333
|
uid: uid,
|
335
|
uid: uid,
|
334
|
- coupon_tokens: getPrize.value
|
336
|
+ coupon_tokens: getPrize.value,
|
|
|
337
|
+ sendType: 2
|
335
|
},
|
338
|
},
|
336
|
api: UfoApi
|
339
|
api: UfoApi
|
337
|
});
|
340
|
});
|
338
|
|
341
|
|
339
|
sendMessage(1, {}, {succeedTimes: 1}, 0);
|
342
|
sendMessage(1, {}, {succeedTimes: 1}, 0);
|
340
|
|
343
|
|
|
|
344
|
+ logger.info(`ufo.coupons.send=>uid: ${uid}, ${JSON.stringify(sendResult || {})}`);
|
341
|
if (sendResult && sendResult.code === 200) {
|
345
|
if (sendResult && sendResult.code === 200) {
|
342
|
getPrize.desc = '恭喜您获得' + getPrize.name + '优惠券';
|
346
|
getPrize.desc = '恭喜您获得' + getPrize.name + '优惠券';
|
343
|
}
|
347
|
}
|