|
|
@@ -847,7 +847,7 @@ class UserThirdRepository extends BaseRepository
|
|
847
|
847
|
//判断是否是老用户 is_old=1是1.0的用户,1.0的用户要总pv*45%的红包
|
|
848
|
848
|
if($user["is_old"]==1){
|
|
849
|
849
|
//添加红包
|
|
850
|
|
- $hongbao=round($inc_score*0.45,2);
|
|
|
850
|
+ $hongbao=roundOptimize($inc_score*0.45,2);
|
|
851
|
851
|
$hongbao_data = [
|
|
852
|
852
|
"uid" =>$user_id,
|
|
853
|
853
|
"number" => $hongbao,
|
|
|
@@ -875,7 +875,7 @@ class UserThirdRepository extends BaseRepository
|
|
875
|
875
|
|
|
876
|
876
|
// @todo 用户身份比例
|
|
877
|
877
|
$yongjinbili = StoreOrderRepository::getUserGroupRate($sprerdUser['user_group']);
|
|
878
|
|
- $tuiguanyongjin=round($yongjinbili*$inc_score,2);//按照身份获得佣金
|
|
|
878
|
+ $tuiguanyongjin=roundOptimize($yongjinbili*$inc_score,2);//按照身份获得佣金
|
|
879
|
879
|
|
|
880
|
880
|
//添加推广积分
|
|
881
|
881
|
$tuijifendata = [
|