diff --git a/apps/common/HomeController.php b/apps/common/HomeController.php
index df7ae95ac34c884f6debca27839c705a3f8c3e8d..85c50e7c16fe89b7048a531108ff0c0aa931cf15 100644
--- a/apps/common/HomeController.php
+++ b/apps/common/HomeController.php
@@ -17,7 +17,12 @@ class HomeController extends Controller
             if ($this->config('wap_domain') && $this->config('wap_domain') == get_http_host()) {
                 $this->setTheme(get_theme() . '/wap'); // 宸茬粦鍩熷悕骞朵笖涓€鑷村垯鑷姩鎵嬫満鐗堟湰
             } elseif (is_mobile() && $this->config('wap_domain') && $this->config('wap_domain') != get_http_host()) {
-                header('Location://' . $this->config('wap_domain') . URL); // 鎵嬫満璁块棶骞朵笖缁戝畾浜嗗煙鍚嶏紝浣嗘槸璁块棶鍩熷悕涓嶄竴鑷村垯璺宠浆
+                if (is_https()) {
+                    $pre = 'https://';
+                } else {
+                    $pre = 'http://';
+                }
+                header('Location:' . $pre . $this->config('wap_domain') . URL); // 鎵嬫満璁块棶骞朵笖缁戝畾浜嗗煙鍚嶏紝浣嗘槸璁块棶鍩熷悕涓嶄竴鑷村垯璺宠浆
             } elseif (is_mobile()) { // 鍏朵粬鎯呭喌鎵嬫満璁块棶鍒欒嚜鍔ㄦ墜鏈虹増鏈�
                 $this->setTheme(get_theme() . '/wap');
             } else { // 鍏朵粬鎯呭喌锛岀數鑴戠増鏈�