- 移除不必要的更新结果检查 - 简化更新操作返回逻辑 - 统一方法返回值处理
@@ -74,9 +74,7 @@ class SharedProsperityRecommendConfigRepository extends BaseRepository
$params['consume'] = null;
}
- if (!$this->dao->update($id, $params)) {
- return false;
- }
+ $this->dao->update($id, $params);
return true;