Ver Fonte

更换名称

shish há 1 ano atrás
pai
commit
622e89673a
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      app-ghs/controllers/LiveOrderController.php

+ 4 - 1
app-ghs/controllers/LiveOrderController.php

@@ -23,7 +23,7 @@ class LiveOrderController extends BaseController
         if (!empty($has)) {
             util::fail('已经在转换了');
         }
-        $list = LiveOrderClass::getAllByCondition(['mainId' => $mainId,'switchOrder'=>0], null, '*', null, true);
+        $list = LiveOrderClass::getAllByCondition(['mainId' => $mainId, 'switchOrder' => 0], null, '*', null, true);
         if (empty($list)) {
             util::fail('没有记录需要转换');
         }
@@ -253,6 +253,9 @@ class LiveOrderController extends BaseController
             $currentName = $liveCustom['customName'] ?? '';
             $num = $liveCustom['num'] ?? '';
             $customInfo = $customList[$customId] ?? [];
+            if (isset($customInfo['seatSnName']) && !empty($customInfo['seatSnName'])) {
+                $currentName = $customInfo['seatSnName'];
+            }
             $seatSn = $customInfo['seatSn'] ?? '';
             $table[] = [
                 'name' => $currentName,