...
|
...
|
@@ -45,7 +45,7 @@ function sendRedbag(){ |
|
|
}
|
|
|
|
|
|
//同类型组内随机一个红包
|
|
|
var coupon_id = couponId_by_type[type_id][array_rand(couponId_by_type[type_id])];
|
|
|
var coupons = implode(',',couponId_by_type[type_id]);
|
|
|
|
|
|
i++;
|
|
|
if (i>5){
|
...
|
...
|
@@ -55,9 +55,9 @@ function sendRedbag(){ |
|
|
|
|
|
callWebsocket(function(){
|
|
|
consoleLog('');
|
|
|
consoleLog('发起推送,优惠券ID: '+coupon_id);
|
|
|
consoleLog('发起推送,优惠券ID: '+coupons);
|
|
|
|
|
|
cmd = {cmd:10011,room:room_id,couponId:String(coupon_id)};
|
|
|
cmd = {cmd:10011,room:room_id,coupons:coupons};
|
|
|
cmd = makeSign(cmd);
|
|
|
|
|
|
cmd = JSON.stringify(cmd);
|
...
|
...
|
|