shish před 2 roky
rodič
revize
5e50de656c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      console/controllers/BookController.php

+ 1 - 1
console/controllers/BookController.php

@@ -34,7 +34,7 @@ class BookController extends Controller
         Yii::$app->redis->executeCommand('DEL', [$cacheKey]);
         Yii::$app->params['errorReport'] = 1;
         foreach ($list as $key => $bookSn) {
-            $cgList = CgOrderClass::getAllByCondition(['book' => $bookSn, 'status' => 3], null, '*', null, true);
+            $cgList = CgOrderClass::getAllByCondition(['bookSn' => $bookSn, 'status' => 3], null, '*', null, true);
             if (empty($cgList)) {
                 foreach ($cgList as $cg) {
                     $connection = Yii::$app->db;