调整设备数据返回

dev
vine_liutk 2023-01-05 10:34:05 +08:00
parent 438f037bb5
commit 8941848113
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class DeviceResource extends JsonResource
}, ''), //录入人
'created_at' => strtotime($this->created_at) ?? 0, //录入时间
'is_recommend' => $this->is_recommend,
'sort' => $this->sort,
'sort' => $this->sort ?? 0,
];
}
}