|
|
@@ -19,6 +19,7 @@ class MqController extends Controller
|
|
|
$noticeKey = "bookChangeOffItem";
|
|
|
while ($count = Yii::$app->redis->executeCommand('LLEN', [$noticeKey])) {
|
|
|
$json = Yii::$app->redis->executeCommand('RPOP', [$noticeKey]);
|
|
|
+ echo $json;die;
|
|
|
if (!empty($json)) {
|
|
|
$arr = json_decode($json, true);
|
|
|
$id = $arr['id'] ?? 0;
|