|
@@ -866,7 +866,7 @@ class BetService extends BaseService
|
|
|
$inlineButton = self::getOperateButton();
|
|
$inlineButton = self::getOperateButton();
|
|
|
|
|
|
|
|
$rand_num = $noticeNum - $bet_num;
|
|
$rand_num = $noticeNum - $bet_num;
|
|
|
- // $text .= self::fakeLotteryDraw($issue_no, $awards, $rand_num);
|
|
|
|
|
|
|
+ $text .= self::fakeLotteryDraw($issue_no, $awards, $rand_num);
|
|
|
// for ($i = 0; $i < $rand_num; $i++) {
|
|
// for ($i = 0; $i < $rand_num; $i++) {
|
|
|
// // 生成 -100000 到 100000 的随机数,但排除 -10 到 10 的范围
|
|
// // 生成 -100000 到 100000 的随机数,但排除 -10 到 10 的范围
|
|
|
// $randomNumber = random_int(-1000000, 1000000) / 100;
|
|
// $randomNumber = random_int(-1000000, 1000000) / 100;
|
|
@@ -906,14 +906,38 @@ class BetService extends BaseService
|
|
|
|
|
|
|
|
// $yl = $profit - $amount;
|
|
// $yl = $profit - $amount;
|
|
|
$yl = bcsub($profit, $amount, 2); // 盈利
|
|
$yl = bcsub($profit, $amount, 2); // 盈利
|
|
|
|
|
+ // if ($k + 1 <= $rand_num) {
|
|
|
|
|
+ // $text .= "会员下注 【" . $lastStr . "】 {$v['amount']} {$profit} {$yl}\n";
|
|
|
|
|
+ // }
|
|
|
if ($k + 1 <= $rand_num) {
|
|
if ($k + 1 <= $rand_num) {
|
|
|
- $text .= "会员下注 【" . $lastStr . "】 {$v['amount']} {$profit} {$yl}\n";
|
|
|
|
|
|
|
+ $text .= "用户ID:{$lastStr} \n";
|
|
|
|
|
+ $text .= "下注类型:[".$v['keywords']."] \n";
|
|
|
|
|
+ $text .= "中奖类型:[".$v['keywords']."] \n";
|
|
|
|
|
+ $text .= "投注金额:{$v['amount']} \n";
|
|
|
|
|
+ $text .= "中奖金额:{$v['amount']} \n";
|
|
|
|
|
+ $text .= "派彩金额:{$profit} \n";
|
|
|
|
|
+ $text .= "盈亏金额:{$yl} \n";
|
|
|
|
|
+ $text .= "-------------------------------- \n";
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
- $v['amount'] = number_format($v['amount'],2);
|
|
|
|
|
|
|
+ $amount = number_format($v['amount'],2);
|
|
|
|
|
+ $v['amount'] = $v['amount'];
|
|
|
|
|
+ // if ($k + 1 <= $rand_num) {
|
|
|
|
|
+ // $text .= "会员下注 【" . $lastStr . "】 {$v['amount']} {$v['profit']} -{$v['amount']}\n";
|
|
|
|
|
+ // }
|
|
|
|
|
+ $profit = number_format($v['profit'],2);
|
|
|
|
|
+ $yl = bcsub($v['profit'], $v['amount'], 2); // 盈利
|
|
|
|
|
+ // $text .= "会员下注 【" . $v['lastStr'] . "】 {$amount} {$profit} {$yl}\n";
|
|
|
|
|
|
|
|
if ($k + 1 <= $rand_num) {
|
|
if ($k + 1 <= $rand_num) {
|
|
|
- $text .= "会员下注 【" . $lastStr . "】 {$v['amount']} {$v['profit']} -{$v['amount']}\n";
|
|
|
|
|
|
|
+ $text .= "用户ID:{$lastStr} \n";
|
|
|
|
|
+ $text .= "下注类型:[".$v['keywords']."] \n";
|
|
|
|
|
+ $text .= "中奖类型:[] \n";
|
|
|
|
|
+ $text .= "投注金额:{$amount} \n";
|
|
|
|
|
+ $text .= "中奖金额:0 \n";
|
|
|
|
|
+ $text .= "派彩金额:0 \n";
|
|
|
|
|
+ $text .= "盈亏金额:-{$amount} \n";
|
|
|
|
|
+ $text .= "-------------------------------- \n";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|