瀏覽代碼

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
     /**