WIN-2308041133\Administrator 4 maanden geleden
bovenliggende
commit
97f4c757f8
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      app/common/repositories/user/AwardIntegralPriceRepository.php

+ 1 - 1
app/common/repositories/user/AwardIntegralPriceRepository.php

@@ -93,7 +93,7 @@ class AwardIntegralPriceRepository extends BaseRepository
         }
             @file_put_contents('quanju4.txt', $basePrice . "-之前的总价总价\r\n", 8);
             @file_put_contents('quanju4.txt', $add_price . "-963\r\n", 8);
-        $price = bcadd($add_price, (string)$basePrice, 8);
+        $price = bcadd(sprintf("%.8f", $add_price), (string)$basePrice, 8);
 
         @file_put_contents('quanju4.txt', time() . "-正常获取走的到这里吗\r\n", 8);
         @file_put_contents('quanju4.txt', $price . "-总价\r\n", 8);