@@ -14,6 +14,7 @@ use Illuminate\Support\Facades\Log;
* 修复农场土地状态命令
*
* 修复土地状态与作物生长阶段不一致的问题
+ * php artisan farm:fix-land-status --dry-run
*/
class FixLandStatusCommand extends Command
{
@@ -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
class FixRemovedCropLandStatusCommand extends Command
@@ -726,6 +726,9 @@ class CropLogic
Helper::check_tr();
// 获取土地信息
+ /**
+ * @var FarmLand $land
+ */
$land = FarmLand::where('id', $landId)
->where('user_id', $userId)
->first();