|
@@ -822,6 +822,7 @@ class BetService extends BaseService
|
|
|
$item = [];
|
|
$item = [];
|
|
|
$item['id'] = $v['id'];
|
|
$item['id'] = $v['id'];
|
|
|
$item['lottery_status'] = self::model()::STATUS_LOSS;//未中奖
|
|
$item['lottery_status'] = self::model()::STATUS_LOSS;//未中奖
|
|
|
|
|
+ $item['profit_and_loss'] = -$v['amount'];
|
|
|
|
|
|
|
|
if (in_array($v['number'], $awards)) {
|
|
if (in_array($v['number'], $awards)) {
|
|
|
$amount = $v['amount'];
|
|
$amount = $v['amount'];
|
|
@@ -845,6 +846,7 @@ class BetService extends BaseService
|
|
|
$profit = 1000000; // 单注最高奖金1000000
|
|
$profit = 1000000; // 单注最高奖金1000000
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ $item['lottery_status'] = self::model()::STATUS_WIN;//中奖
|
|
|
$item['win_amount'] = $profit;
|
|
$item['win_amount'] = $profit;
|
|
|
$yl = bcsub($profit, $amount, 2); // 盈利
|
|
$yl = bcsub($profit, $amount, 2); // 盈利
|
|
|
$item['profit_and_loss'] = $yl;
|
|
$item['profit_and_loss'] = $yl;
|
|
@@ -924,6 +926,7 @@ class BetService extends BaseService
|
|
|
$profit = 1000000; // 单注最高奖金1000000
|
|
$profit = 1000000; // 单注最高奖金1000000
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ $item['lottery_status'] = self::model()::STATUS_WIN;//中奖
|
|
|
$item['win_amount'] = $profit;
|
|
$item['win_amount'] = $profit;
|
|
|
|
|
|
|
|
$yl = bcsub($profit, $amount, 2); // 盈利
|
|
$yl = bcsub($profit, $amount, 2); // 盈利
|