|
|
@@ -19,6 +19,7 @@ class BookController extends Controller
|
|
|
$cacheKey = 'assign_seat_main_book_sn_list';
|
|
|
$num = Yii::$app->redis->executeCommand('SCARD', [$cacheKey]);
|
|
|
if ($num <= 0) {
|
|
|
+ echo "没有数量\n";
|
|
|
return false;
|
|
|
}
|
|
|
if ($num > 15) {
|
|
|
@@ -26,6 +27,7 @@ class BookController extends Controller
|
|
|
}
|
|
|
$list = Yii::$app->redis->executeCommand('SMEMBERS', [$cacheKey]);
|
|
|
if (empty($list)) {
|
|
|
+ echo "没有数量哦\n";
|
|
|
return false;
|
|
|
}
|
|
|
Yii::$app->redis->executeCommand('DEL', [$cacheKey]);
|