diff --git a/app/api/controller/Gh.php b/app/api/controller/Gh.php index e8f27d79..41db507c 100644 --- a/app/api/controller/Gh.php +++ b/app/api/controller/Gh.php @@ -251,7 +251,7 @@ class Gh extends Api } $earns = new Earnings(); // 推广会员用户佣金 - $earnings = round($earnings_pecent*$abutment['classify_amt']/100,2); + $earnings = round($earnings_pecent*$abutment['classify_amt']/100/100,2); $distribution_user_earnings = AccountLog::distribution_user_earnings; $earnings_result = $earns->userEarnings($earnings,$user['first_leader'],$distribution_user_earnings); if(!$earnings_result){ @@ -260,7 +260,7 @@ class Gh extends Api // 推广会员无极佣金 if($user['divide_state']==1){ if($user['divide_role_user_id'] > 0){ - $electrodeless = round($earnings_electrodeless_pecent*$abutment['classify_amt']/100,2); + $electrodeless = round($earnings_electrodeless_pecent*$abutment['classify_amt']/100/100,2); $distribution_user_electrodeless_earnings = AccountLog::distribution_user_electrodeless_earnings; $earnings_result = $earns->userElectrodelessEarnings($electrodeless,$user['divide_role_user_id'],$distribution_user_electrodeless_earnings); if(!$earnings_result){