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

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

@@ -1919,8 +1919,8 @@ class OrderController extends BaseController
         $id = $get['id'] ?? 0;
         $info = CustomClass::getCustom($id);
         CustomClass::valid($info, $this->shopId);
-
-        $where = ['customId' => $id, 'debt' => 1];
+        $mainId = $this->mainId;
+        $where = ['mainId' => $mainId, 'customId' => $id, 'debt' => 1];
         $searchTime = $get['searchTime'] ?? '';
         if (!empty($searchTime)) {
             $startTime = $get['startTime'] ?? '';