|
|
@@ -695,20 +695,29 @@ class BetService extends BaseService
|
|
|
$yl = bcsub($v['profit'], $v['amount'], 2); // 盈利
|
|
|
// $text .= "会员下注 【" . $v['lastStr'] . "】 {$amount} {$profit} {$yl}\n";
|
|
|
|
|
|
- $text .= "用户ID:{$v['lastStr']} \n";
|
|
|
- $text .= "下注类型:[".implode(',', $v['keywords'])."] \n";
|
|
|
- $text .= "中奖类型:[".implode(',', $v['openKeywords'])."] \n";
|
|
|
- $text .= "投注金额:{$amount} \n";
|
|
|
- $text .= "中奖金额:{$v['win_amount']} \n";
|
|
|
- $text .= "派彩金额:{$profit} \n";
|
|
|
- $text .= "盈亏金额:{$yl} \n";
|
|
|
- $text .= "-------------------------------- \n";
|
|
|
+ if(++$bet_num <= $realNoticeNum){
|
|
|
+ $text .= "用户ID:{$v['lastStr']} \n";
|
|
|
+ $text .= "下注类型:[".implode(',', $v['keywords'])."] \n";
|
|
|
+ $text .= "中奖类型:[".implode(',', $v['openKeywords'])."] \n";
|
|
|
+ $text .= "投注金额:{$amount} \n";
|
|
|
+ $text .= "中奖金额:{$v['win_amount']} \n";
|
|
|
+ $text .= "派彩金额:{$profit} \n";
|
|
|
+ $text .= "盈亏金额:{$yl} \n";
|
|
|
+ $text .= "-------------------------------- \n";
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ $text2 = "{$issue_no}期开奖结果 \n";
|
|
|
+ $text2 .= "下注类型:[".implode(',', $v['keywords'])."] \n";
|
|
|
+ $text2 .= "中奖类型:[".implode(',', $v['openKeywords'])."] \n";
|
|
|
+ $text2 .= "投注金额:{$amount} \n";
|
|
|
+ $text2 .= "中奖金额:{$v['win_amount']} \n";
|
|
|
+ $text2 .= "派彩金额:{$profit} \n";
|
|
|
+ $text2 .= "盈亏金额:{$yl} \n";
|
|
|
+ self::sendMessage($v['member_id'],$text2);
|
|
|
// }else{
|
|
|
// $text .= "会员下注 【" . $v['lastStr'] . "】 {$amount} 0 -{$amount}\n";
|
|
|
// }
|
|
|
- if(++$bet_num >= $realNoticeNum){
|
|
|
- break;
|
|
|
- }
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -845,7 +854,7 @@ class BetService extends BaseService
|
|
|
$profit = number_format($v['profit'],2);
|
|
|
$yl = bcsub($v['profit'], $v['amount'], 2); // 盈利
|
|
|
// $text .= "会员下注 【" . $v['lastStr'] . "】 {$amount} {$profit} {$yl}\n";
|
|
|
- if(++$bet_num >= $realNoticeNum){
|
|
|
+ if(++$bet_num <= $realNoticeNum){
|
|
|
$text .= "用户ID:{$v['lastStr']} \n";
|
|
|
$text .= "下注类型:[".implode(',', $v['keywords'])."] \n";
|
|
|
$text .= "中奖类型:[".implode(',', $v['openKeywords'])."] \n";
|