shish 2 years ago
parent
commit
4b75e45e9a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      console/controllers/MqController.php

+ 1 - 0
console/controllers/MqController.php

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