Commit 74c0cec8 74c0cec811f76080fa6a59cb2b7343c3844272a1 by 杨俊

fix(develop): 修复报错

1 parent 1a0913cc
......@@ -88,9 +88,8 @@ public function bandList(Request $request)
if ($page === 1) {
//查询符合条件活动
$data = $query->get(['id']);
dd($data);
//插入有序集合中
if (!empty($data)) {
if ($data->isNotEmpty()) {
Redis::client()->del($key);
Redis::client()->zAdd($key, ...$data->map(fn(Project $item) => [random_int(50, 200), $item->getKey()])->flatten()->toArray());
Redis::client()->expire($key, 2 * 60 * 60);
......