"待做", 1 => "完成", 2 => "失败", 3 => "队列", ]; const MARK = [ 0 => "无", 1 => "缓存架半箱入库", 2 => "料箱出至缓存架" ]; public function materialBox() { //料箱 return $this->belongsTo(MaterialBox::class); } public function task() { //任务 return $this->belongsTo(StationTaskMaterialBox::class,"task_id"); } }