Authored by 陈峰

senttype

@@ -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 }
@@ -20,14 +20,15 @@ module.exports = { @@ -20,14 +20,15 @@ module.exports = {
20 20
21 // yohoVerifyUdid: '0f626ede-0e17-460b-a8ea-069ee506e8e9', 21 // yohoVerifyUdid: '0f626ede-0e17-460b-a8ea-069ee506e8e9',
22 domains: { 22 domains: {
23 - // api: 'http://api-test3.dev.yohocorp.com/',  
24 - // service: 'http://api-test3.dev.yohocorp.com/',  
25 - // singleApi: 'http://api-test3.yohops.com:9999/', 23 + api: 'http://api-test3.dev.yohocorp.com/',
  24 + service: 'http://api-test3.dev.yohocorp.com/',
  25 + singleApi: 'http://api-test3.yohops.com:9999/',
  26 + ufo: 'http://java-yohoufo-fore.test3.ingress.dev.yohocorp.com/ufo-gateway/',
26 27
27 - singleApi: 'http://api.yoho.cn/',  
28 - api: 'http://api.yoho.cn/',  
29 - service: 'http://service.yoho.cn/',  
30 - ufo: 'http://2.yohobuy.com', 28 + // singleApi: 'http://api.yoho.cn/',
  29 + // api: 'http://api.yoho.cn/',
  30 + // service: 'http://service.yoho.cn/',
  31 + // ufo: 'http://2.yohobuy.com',
31 store: 'http://192.168.102.47:8080/portal-gateway/wechat/', 32 store: 'http://192.168.102.47:8080/portal-gateway/wechat/',
32 serviceNotify: 'http://service.yoho.cn/', 33 serviceNotify: 'http://service.yoho.cn/',
33 platformApi: 'http://172.16.6.210:8088/', 34 platformApi: 'http://172.16.6.210:8088/',