shish 2 лет назад
Родитель
Сommit
5e50de656c
1 измененных файлов с 1 добавлено и 1 удалено
  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;