Commit 234ff4d0 234ff4d0cbc569bd26b3637b09c2a0555f1a1c04 by 杨俊

fix(develop): 修复报错

1 parent 29b6c6ec
......@@ -90,10 +90,7 @@ public function bandList(Request $request)
$data = $query->get(['id']);
//插入有序集合中
Redis::client()->del($key);
if (empty($data)) {
Redis::client()->zAdd($key, []);
} else {
if (!empty($data)) {
Redis::client()->zAdd($key, ...$data->map(fn(Project $item) => [random_int(50, 200), $item->getKey()])->flatten()->toArray());
}
Redis::client()->expire($key, 2 * 60 * 60);
......