|
|
@@ -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;
|