WIN-2308041133\Administrator 3 maanden geleden
bovenliggende
commit
e2011743e0
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      app/common/repositories/store/order/StoreOrderRepository.php

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

@@ -1409,11 +1409,11 @@ class StoreOrderRepository extends BaseRepository
     {
         $price = app()->make(AwardIntegralPriceRepository::class)->awardIntegralPrice();  //分红积分价格
         @file_put_contents('quanju.txt', json_encode($price) . "-积分金额3\r\n", 8);
-        $MerchantRepository = app()->make(MerchantRepository::class);
+//        $MerchantRepository = app()->make(MerchantRepository::class);
 //        $uid = Merchant::where('mer_id', $order['mer_id'])->value('uid');
         $award_integral = User::where('uid', $service_id)->value('award_integral');
-        $integral_prcie = app()->make(AwardIntegralPriceRepository::class)->getPrice();  //积分价格
-        $integral = bcmul(bcdiv(2, $integral_prcie['price'], 2), $order['total_num'], 2);  //价值2元的积分
+//        $integral_prcie = app()->make(AwardIntegralPriceRepository::class)->getPrice();  //积分价格
+        $integral = bcmul(bcdiv(2, $price['price'], 2), $order['total_num'], 2);  //价值2元的积分
         $make = app()->make(UserBillRepository::class);
         $after = bcadd($award_integral, $integral, 2);
         $make->incBill($service_id, 'award_integral', 'confirm_oil_integral', [