Procházet zdrojové kódy

fix(repository): 修复共享繁荣推荐配置更新逻辑

- 移除不必要的更新结果检查
- 简化更新操作返回逻辑
- 统一方法返回值处理
shichen před 5 měsíci
rodič
revize
42940685ff

+ 1 - 3
app/common/repositories/shared/SharedProsperityRecommendConfigRepository.php

@@ -74,9 +74,7 @@ class SharedProsperityRecommendConfigRepository extends BaseRepository
74 74
             $params['consume'] = null;
75 75
         }
76 76
 
77
-        if (!$this->dao->update($id, $params)) {
78
-            return false;
79
-        }
77
+        $this->dao->update($id, $params);
80 78
         return true;
81 79
     }
82 80