shish 2 лет назад
Родитель
Сommit
bb0b2e8293
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app-ghs/controllers/OrderController.php

+ 1 - 1
app-ghs/controllers/OrderController.php

@@ -55,7 +55,7 @@ class OrderController extends BaseController
         $connection = Yii::$app->db;
         $transaction = $connection->beginTransaction();
         try {
-            $all = OrderClass::getAllByCondition(['id' => ['in', $ids]], null, '*', null, true);
+            $all = OrderClass::getAllByCondition(['id' => ['in', $arr]], null, '*', null, true);
             foreach ($all as $order) {
                 if ($order->mainId != $this->mainId) {
                     util::fail('不是你的订单哦');