소스 검색

fix(product): 修正产品同步成本价计算逻辑

- 将成本价计算中的费率从 0.23 更新为 0.73
- 保持原有的高精度计算方式不变
shichen 3 달 전
부모
커밋
27f1761802
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/command/WiwibaoProductSync.php

+ 1 - 1
app/command/WiwibaoProductSync.php

@@ -431,7 +431,7 @@ class WiwibaoProductSync extends Command
431 431
      */
432 432
     protected function calculateCostPrice($platPrice)
433 433
     {
434
-        return bcadd((string)$platPrice, bcmul((string)$platPrice, '0.23', 4), 2);
434
+        return bcadd((string)$platPrice, bcmul((string)$platPrice, '0.73', 4), 2);
435 435
     }
436 436
 
437 437
     /**