Просмотр исходного кода

创建订单-修复下单问题

sunxbiao месяцев назад: 5
Родитель
Сommit
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
                 $sharedProsperityUserEntityByParent = $sharedProsperityUserRepository->getSharedProsperityUserEntityByUserId($sharedProsperityUserEntity->getParentId());
11658
                 $sharedProsperityUserEntityByParent = $sharedProsperityUserRepository->getSharedProsperityUserEntityByUserId($sharedProsperityUserEntity->getParentId());
11659
                 if (!empty($sharedProsperityUserEntityByParent->getId())) {
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
                     /** @var UserBillRepository $userBillRepository */
11662
                     /** @var UserBillRepository $userBillRepository */
11663
                     $userBillRepository = app()->make(UserBillRepository::class);
11663
                     $userBillRepository = app()->make(UserBillRepository::class);
11664
                     $userBillRepository->addUserBill(
11664
                     $userBillRepository->addUserBill(