|
|
@@ -6,10 +6,11 @@ use App\Module\Farm\Models\FarmCrop;
|
|
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
+use UCore\Helper\Logger;
|
|
|
|
|
|
/**
|
|
|
* 作物生长阶段变更事件
|
|
|
- *
|
|
|
+ *
|
|
|
* 当作物的生长阶段发生变化时触发
|
|
|
*/
|
|
|
class CropGrowthStageChangedEvent
|
|
|
@@ -55,6 +56,8 @@ class CropGrowthStageChangedEvent
|
|
|
*/
|
|
|
public function __construct(int $userId, FarmCrop $crop, int $oldStage, int $newStage)
|
|
|
{
|
|
|
+
|
|
|
+ Logger::debug('CropGrowthStageChangedEvent');
|
|
|
$this->userId = $userId;
|
|
|
$this->crop = $crop;
|
|
|
$this->oldStage = $oldStage;
|