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

refactor(UrsPromotion):优化 UrsTransferFeeLogic 类

- 移除了 calculateBestFeeRate 方法后的缓存逻辑
- 删除了多余的空行,提高了代码可读性
notfff 6 месяцев назад
Родитель
Сommit
64b4af0e20
1 измененных файлов с 0 добавлено и 4 удалено
  1. 0 4
      app/Module/UrsPromotion/Logics/UrsTransferFeeLogic.php

+ 0 - 4
app/Module/UrsPromotion/Logics/UrsTransferFeeLogic.php

@@ -42,7 +42,6 @@ class UrsTransferFeeLogic
                                                   __CLASS__, __FUNCTION__, $userId, $transferType
                                               ], function ($userId, $transferType) {
 
-
             // 获取用户的房屋等级
             $houseLevel = $this->getUserHouseLevel($userId);
 
@@ -51,9 +50,6 @@ class UrsTransferFeeLogic
             // 获取最优手续费率
             $feeRate = $this->calculateBestFeeRate($houseLevel, $talentLevel, $transferType);
 
-            // 缓存结果
-
-
 
             Log::info('URS转账手续费率计算完成', [
                 'user_id'       => $userId,