Journal::updateOrCreate(
[
'user_id' => $request->user_id,
'schedule' => Carbon::createFromDate($request->schedule)->format('Y-m-d'),
'type' => 1,
],
['type' => $request->type,]
);
'type' => 1,
如何修复条件以便执行检查type < 5
?