소스 검색

创建订单-修复下单问题

sunxbiao 5 달 전
부모
커밋
a6b2ad33a2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/common/repositories/store/order/StoreOrderRepository.php

+ 1 - 1
app/common/repositories/store/order/StoreOrderRepository.php

@@ -11658,7 +11658,7 @@ class StoreOrderRepository extends BaseRepository
11658 11658
                 $sharedProsperityUserEntityByParent = $sharedProsperityUserRepository->getSharedProsperityUserEntityByUserId($sharedProsperityUserEntity->getParentId());
11659 11659
                 if (!empty($sharedProsperityUserEntityByParent->getId())) {
11660 11660
                     // 为 共富体系推荐人 发放养老金
11661
-                    $yanglaojinBySpreadUid = bcmul($storeOrderEntity->getConPri(), CommonEnum::ORDER_EARNING_ALLOCATION['SharedProsperity']['Spread']['YangLaoJin']['Ratio']['code'], CommonEnum::DECIMAL_PLACES_OF_THE_AMOUNT);
11661
+                    $yanglaojinBySpreadUid = bcmul($storeOrderEntity->getTotalPrice(), CommonEnum::ORDER_EARNING_ALLOCATION['SharedProsperity']['Spread']['YangLaoJin']['Ratio']['code'], CommonEnum::DECIMAL_PLACES_OF_THE_AMOUNT);
11662 11662
                     /** @var UserBillRepository $userBillRepository */
11663 11663
                     $userBillRepository = app()->make(UserBillRepository::class);
11664 11664
                     $userBillRepository->addUserBill(