|
|
@@ -122,6 +122,7 @@ class UserMiningMachine extends BaseModel
|
|
|
}
|
|
|
}
|
|
|
$day_get = bcmul($machine['day_get'] > 0 ? $machine['day_get'] : $day_gets[$machine['get_money_type']], $v['num'], 8);
|
|
|
+ if ($machine['type'] == 2) $day_get = bcmul($day_get, 0.8, 8);
|
|
|
$service_ratio = bcsub(1, bcdiv($machine['service_ratio'], 100, 4), 4);
|
|
|
$day_service_get = bcmul($service_ratio, $day_get, 8);
|
|
|
$second_step_get_ratio = bcdiv($machine['second_step_get_ratio'], 100, 4);
|
|
|
@@ -144,6 +145,7 @@ class UserMiningMachine extends BaseModel
|
|
|
// var_dump($day_gets);
|
|
|
$day_get = bcmul($machine['day_get'] > 0 ? $machine['day_get'] : $day_gets[$machine['get_money_type']], $v['num'], 8);
|
|
|
// var_dump($day_get);
|
|
|
+ if ($machine['type'] == 2) $day_get = bcmul($day_get, 0.8, 8);
|
|
|
$service_ratio = bcsub(1, bcdiv($machine['service_ratio'], 100, 4), 4);
|
|
|
$day_service_get = bcmul($service_ratio, $day_get, 8);
|
|
|
$first_step_get_ratio = bcdiv($machine['first_step_get_ratio'], 100, 4);
|