AI Assistant 6 luni în urmă
părinte
comite
88d2792e89

+ 1 - 0
app/Module/Farm/Commands/FixLandStatusCommand.php

@@ -14,6 +14,7 @@ use Illuminate\Support\Facades\Log;
  * 修复农场土地状态命令
  * 修复农场土地状态命令
  *
  *
  * 修复土地状态与作物生长阶段不一致的问题
  * 修复土地状态与作物生长阶段不一致的问题
+ * php artisan farm:fix-land-status  --dry-run
  */
  */
 class FixLandStatusCommand extends Command
 class FixLandStatusCommand extends Command
 {
 {

+ 1 - 1
app/Module/Farm/Commands/FixRemovedCropLandStatusCommand.php

@@ -11,7 +11,7 @@ use Illuminate\Support\Facades\Log;
 /**
 /**
  * 修复已铲除作物的土地状态命令
  * 修复已铲除作物的土地状态命令
  *
  *
- * 修复没有作物(has_crop为0)但土地状态不是空闲的问题
+ * 修复没有作物(has_crop为0)但土地状态不是空闲的问题,设为空闲
  * php artisan farm:fix-removed-crop-land-status --dry-run
  * php artisan farm:fix-removed-crop-land-status --dry-run
  */
  */
 class FixRemovedCropLandStatusCommand extends Command
 class FixRemovedCropLandStatusCommand extends Command

+ 3 - 0
app/Module/Farm/Logics/CropLogic.php

@@ -726,6 +726,9 @@ class CropLogic
             Helper::check_tr();
             Helper::check_tr();
 
 
             // 获取土地信息
             // 获取土地信息
+            /**
+             * @var FarmLand $land
+             */
             $land = FarmLand::where('id', $landId)
             $land = FarmLand::where('id', $landId)
                 ->where('user_id', $userId)
                 ->where('user_id', $userId)
                 ->first();
                 ->first();