|
|
@@ -11745,9 +11745,13 @@ class StoreOrderRepository extends BaseRepository
|
|
11745
|
11745
|
// 发放共富区PV
|
|
11746
|
11746
|
/** @var SharedProsperityRecommendConfigRepository $sharedProsperityRecommendConfigRepository */
|
|
11747
|
11747
|
$sharedProsperityRecommendConfigRepository = app()->make(SharedProsperityRecommendConfigRepository::class);
|
|
|
11748
|
+ // 共富配置--获取最大的直推奖比例
|
|
11748
|
11749
|
$sharedProsperityRecommendConfigEntityByMaxRewardRatio = $sharedProsperityRecommendConfigRepository->getSharedProsperityRecommendConfigEntityByMaxRewardRatio();
|
|
|
11750
|
+ // 共富配置--获取最大的分享奖比例
|
|
|
11751
|
+ $sharedProsperityRecommendConfigEntityByMaxShareRewardRatio = $sharedProsperityRecommendConfigRepository->getSharedProsperityRecommendConfigEntityByMaxShareRatio();
|
|
11749
|
11752
|
// 利润 减去 顶格的直推奖,剩下的是PV值
|
|
11750
|
|
- $pvProportion = bcsub('1', bcdiv($sharedProsperityRecommendConfigEntityByMaxRewardRatio->getRewardRatio(), '100', 4), 2);
|
|
|
11753
|
+ $sharPveRate = bcadd($sharedProsperityRecommendConfigEntityByMaxRewardRatio->getRewardRatio(),$sharedProsperityRecommendConfigEntityByMaxShareRewardRatio->getShareRatio(), CommonEnum::DECIMAL_PLACES_OF_THE_AMOUNT);
|
|
|
11754
|
+ $pvProportion = bcsub('1', bcdiv($sharPveRate, '100', 4), 2);
|
|
11751
|
11755
|
|
|
11752
|
11756
|
$pv = bcmul($storeOrderEntity->getConPri(), $pvProportion, CommonEnum::DECIMAL_PLACES_OF_THE_AMOUNT);
|
|
11753
|
11757
|
/** @var SharedProsperityRewardRecordRepository $sharedProsperityRewardRecordRepository */
|