作者 何书鹏
1 个管道 的构建 通过 耗费 4 秒

bug修改

@@ -264,8 +264,12 @@ class AfterToBefore extends Api @@ -264,8 +264,12 @@ class AfterToBefore extends Api
264 if(empty($add_money)){ 264 if(empty($add_money)){
265 $add_money = 0; 265 $add_money = 0;
266 } 266 }
  267 + // 社保基数
267 $social_top = config('site.social_top'); //社保封顶金额 268 $social_top = config('site.social_top'); //社保封顶金额
268 $social_bottom = config('site.social_bottom'); //社保保底金额 269 $social_bottom = config('site.social_bottom'); //社保保底金额
  270 + // 公积金基数
  271 + $housing_fund_top = config('site.housing_fund_top'); //公积金封顶金额
  272 + $housing_fund_bottom = config('site.housing_fund_bottom'); //公积金保底金额
269 // 公积金缴存比例5%-7% 273 // 公积金缴存比例5%-7%
270 $social_rate_user = Db::name('social_insurance_rate')->where('id',1)->find(); 274 $social_rate_user = Db::name('social_insurance_rate')->where('id',1)->find();
271 $social_rate_company = Db::name('social_insurance_rate')->where('id',2)->find(); 275 $social_rate_company = Db::name('social_insurance_rate')->where('id',2)->find();
@@ -495,7 +499,7 @@ class AfterToBefore extends Api @@ -495,7 +499,7 @@ class AfterToBefore extends Api
495 // 社保汇缴基数 499 // 社保汇缴基数
496 $social_base = $salary_average > $social_top ? $social_top : ($salary_average < $social_bottom ? $social_bottom : $salary_average); 500 $social_base = $salary_average > $social_top ? $social_top : ($salary_average < $social_bottom ? $social_bottom : $salary_average);
497 // 公积金汇缴基数 501 // 公积金汇缴基数
498 - $housing_fund_base = $social_base; 502 + $housing_fund_base = $salary_average > $housing_fund_top ? $housing_fund_top : ($salary_average < $housing_fund_bottom ? $housing_fund_bottom : $salary_average);
499 $this->success('请求成功',compact('param','salary_average','social_user','social_user_money','social_company','social_company_money','person_fee_average','company_cost','user_go','company_go','social_base','housing_fund_base')); 503 $this->success('请求成功',compact('param','salary_average','social_user','social_user_money','social_company','social_company_money','person_fee_average','company_cost','user_go','company_go','social_base','housing_fund_base'));
500 504
501 } 505 }