Просмотр исходного кода

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

- 将价格加价比例从50%调整为20%
- 更新加价计算公式从乘以1.5改为乘以1.2
- 保持价格四舍五入到两位小数的逻辑不变
shichen месяцев назад: 3
Родитель
Сommit
0bbfbf0650
1 измененных файлов с 2 добавлено и 2 удалено
  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 368
      * @param float $price 原价
369 369
      * @return float 加价后的价格
370 370
      */
371 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
     // ================================================================