|
|
@@ -584,8 +584,10 @@ class BetService extends BaseService
|
|
|
$item['status'] = self::model()::STATUS_SETTLED;
|
|
|
|
|
|
if (in_array($v['keywords'], $awards)) {
|
|
|
- $profit = $v['amount'] * $v['odds'];
|
|
|
+ // $profit = $v['amount'] * $v['odds'];
|
|
|
$amount = $v['amount'];
|
|
|
+ $amount = rtrim($amount, '0'); // 去掉右侧的 0
|
|
|
+ $amount = rtrim($amount, '.'); // 如果末尾是 . 就去掉
|
|
|
$odds = $v['odds'];
|
|
|
$profit = bcmul($amount, $odds, 2); // 保留两位小数
|
|
|
if ($profit > 880000) {
|
|
|
@@ -647,6 +649,8 @@ class BetService extends BaseService
|
|
|
$lastStr = self::hideMiddleDigits($v['member_id'], 4);
|
|
|
if (in_array($v['keywords'], $awards)) {
|
|
|
$amount = $v['amount'];
|
|
|
+ $amount = rtrim($amount, '0'); // 去掉右侧的 0
|
|
|
+ $amount = rtrim($amount, '.'); // 如果末尾是 . 就去掉
|
|
|
$odds = $v['odds'];
|
|
|
$profit = bcmul($amount, $odds, 2); // 保留两位小数
|
|
|
if ($profit > 880000) {
|