define(StationTaskBatch::class, function (Faker $faker) { $status = ['待处理','挂起','处理中','完成','异常','取消']; return [ 'batch_id' => factory(\App\Batch::class), 'station_id' => factory(\App\Station::class), 'station_task_batch_type_id' => factory(\App\StationTaskBatchType::class), "status"=>$status[array_rand($status)], ]; });