shish 2 жил өмнө
parent
commit
0c77cc2be9

+ 2 - 2
biz-ghs/book/classes/BookItemGhsClass.php

@@ -72,8 +72,8 @@ class BookItemGhsClass extends BaseClass
             if (!empty($staffList)) {
                 foreach ($staffList as $staff) {
                     $staffId = $staff->id ?? 0;
-                    $params = $cgOrderId . '-' . $staffId;
-                    Yii::$app->redis->executeCommand('SADD', [$cacheKey, $params]);
+                    $ele = $cgOrderId . '-' . $staffId;
+                    Yii::$app->redis->executeCommand('SADD', [$cacheKey, $ele]);
                 }
             }
             $cacheKey = 'ghs_cg_order_guest_refresh_seat_' . $bookSn;

+ 2 - 2
console/controllers/BookController.php

@@ -55,8 +55,8 @@ class BookController extends Controller
                         if (!empty($staffList)) {
                             foreach ($staffList as $staff) {
                                 $staffId = $staff->id ?? 0;
-                                $params = $cgId . '-' . $staffId;
-                                Yii::$app->redis->executeCommand('SADD', [$cacheKey, $params]);
+                                $ele = $cgId . '-' . $staffId;
+                                Yii::$app->redis->executeCommand('SADD', [$cacheKey, $ele]);
                             }
                         }
                         $cacheKey = 'ghs_cg_order_guest_refresh_seat_' . $bookSn;