Quellcode durchsuchen

fix(pricing): 修正价格加价逻辑

- 将价格加价比例从50%调整为20%
- 更新加价计算公式从乘以1.5改为乘以1.2
- 保持价格四舍五入到两位小数的逻辑不变
shichen vor 3 Monaten
Ursprung
Commit
0bbfbf0650
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      app/services/ThirdParty/AlibabaAgent/ProductService.php

+ 2 - 2
app/services/ThirdParty/AlibabaAgent/ProductService.php

@@ -363,14 +363,14 @@ class ProductService extends AlibabaAgentBaseService
363
     // ================================================================
363
     // ================================================================
364
 
364
 
365
     /**
365
     /**
366
-     * 对价格进行加价处理(加价50%)
366
+     * 对价格进行加价处理(加价20%)
367
      *
367
      *
368
      * @param float $price 原价
368
      * @param float $price 原价
369
      * @return float 加价后的价格
369
      * @return float 加价后的价格
370
      */
370
      */
371
     protected function applyMarkup(float $price): float
371
     protected function applyMarkup(float $price): float
372
     {
372
     {
373
-        return round($price * 1.5, 2);
373
+        return round($price * 1.2, 2);
374
     }
374
     }
375
 
375
 
376
     // ================================================================
376
     // ================================================================