shish 1 год назад
Родитель
Сommit
bcb3ced72b
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      biz-ghs/live/classes/LiveOrderClass.php

+ 2 - 2
biz-ghs/live/classes/LiveOrderClass.php

@@ -99,7 +99,7 @@ class LiveOrderClass extends BaseClass
         //分配货位
         //分配货位
         if (empty($seatSn)) {
         if (empty($seatSn)) {
             $mainId = $live->mainId ?? 0;
             $mainId = $live->mainId ?? 0;
-            $seatRes = LiveSeatClass::getByCondition(['mainId' => $mainId, 'no' => 0], true);
+            $seatRes = LiveSeatClass::getByCondition(['mainId' => $mainId, 'customId' => 0], true);
             if (empty($seatRes)) {
             if (empty($seatRes)) {
                 util::fail('没有货位可分配哦');
                 util::fail('没有货位可分配哦');
             }
             }
@@ -208,7 +208,7 @@ class LiveOrderClass extends BaseClass
             $seatSn = $customInfo->seatSn ?? 0;
             $seatSn = $customInfo->seatSn ?? 0;
             //分配货位
             //分配货位
             if (empty($seatSn)) {
             if (empty($seatSn)) {
-                $seatRes = LiveSeatClass::getByCondition(['mainId' => $mainId, 'no' => 0], true);
+                $seatRes = LiveSeatClass::getByCondition(['mainId' => $mainId, 'customId' => 0], true);
                 if (empty($seatRes)) {
                 if (empty($seatRes)) {
                     util::fail('没有货位可分配哈');
                     util::fail('没有货位可分配哈');
                 }
                 }