robert 2 年之前
父節點
當前提交
5a6c4ed1bc
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      mobile/index.php

+ 2 - 1
mobile/index.php

@@ -1,7 +1,8 @@
 
 <?php
   if (!isset($_GET['pos_id'])) {
-    header("Location: {$_SERVER['HTTP_ORIGIN']}/mobile/config.html");
+    $host = (str_contains($_SERVER['HTTP_ORIGIN'], 'vorsortierter-flohmarkt.de')) ? "https://app.vorsortierter-flohmarkt.de" : "";
+    header("Location: {$host}/mobile/config.html");
     exit();
   }
 ?>