|
|
@@ -39,8 +39,7 @@ class PetAutoSkillLogic
|
|
|
'user_id' => $userId
|
|
|
]);
|
|
|
|
|
|
- // 首先清理所有已存在的枯萎作物(不使用道具)
|
|
|
- $witheredClearCount = $this->clearAllWitheredCrops($userId);
|
|
|
+
|
|
|
|
|
|
// 获取用户所有可收获的土地
|
|
|
$harvestableLands = LandService::getHarvestableLands($userId);
|
|
|
@@ -103,7 +102,7 @@ class PetAutoSkillLogic
|
|
|
$this->recordSkillStatistics($activeSkill, 'auto_harvest', [
|
|
|
'harvest_count' => $harvestCount,
|
|
|
'auto_cleared_count' => $autoClearedCount,
|
|
|
- 'withered_cleared_count' => $witheredClearCount,
|
|
|
+
|
|
|
'total_lands_checked' => $harvestableLands->count(),
|
|
|
'harvest_results' => $harvestResults
|
|
|
]);
|
|
|
@@ -114,7 +113,7 @@ class PetAutoSkillLogic
|
|
|
'user_id' => $userId,
|
|
|
'harvest_count' => $harvestCount,
|
|
|
'auto_cleared_count' => $autoClearedCount,
|
|
|
- 'withered_cleared_count' => $witheredClearCount,
|
|
|
+
|
|
|
'total_lands' => $harvestableLands->count()
|
|
|
]);
|
|
|
}
|