|
|
@@ -64,7 +64,7 @@ class Rebate extends Controller
|
|
|
$huishui_percentage = Config::where('field', 'huishui_percentage')->first()->val;
|
|
|
$lose = $rebate->profit * -1;
|
|
|
if ($lose >= $huishui_restriction) {
|
|
|
- $huishuiAmount = bcmul($rebate->profit, $huishui_percentage, 2); // 返利金额
|
|
|
+ $huishuiAmount = bcmul($lose, $huishui_percentage, 2); // 返利金额
|
|
|
}
|
|
|
$rebate->huishui_restriction = $huishui_restriction;
|
|
|
$rebate->huishui_percentage = $huishui_percentage;
|
|
|
@@ -85,7 +85,8 @@ class Rebate extends Controller
|
|
|
$res['after_balance'],
|
|
|
"回水",
|
|
|
$rebate->id,
|
|
|
- "输{$lose}; 回水{$huishuiAmount}");
|
|
|
+ "输{$lose}; 回水{$huishuiAmount}"
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
|