Commit 74c0cec8 74c0cec811f76080fa6a59cb2b7343c3844272a1 by 杨俊

fix(develop): 修复报错

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