Procházet zdrojové kódy

修改getDistributorDomain()方法

(cherry picked from commit d33f8c396c717f13cc29ffc645fd47dfc1610c57)
moshaorui před 5 dny
rodič
revize
6ae76fcad8
1 změnil soubory, kde provedl 5 přidání a 5 odebrání
  1. 5 5
      app/helpers.php

+ 5 - 5
app/helpers.php

@@ -76,14 +76,14 @@ if (!function_exists('getDistributorDomain')) {
         $row = getDistributor();
         if ($row) {
             if ($row['domain_type'] == 0) {
-                $domain = 'http://'.$row['secondary_domain'];
+                $domain = 'https://'.$row['secondary_domain'];
             } else {
-                $domain = 'http://'.$row['custom_domain'];
+                $domain = 'https://'.$row['custom_domain'];
             }
         }
-        if (env('DIST_SITE_PORT') != 80) {
-            $domain .= ':' . env('DIST_SITE_PORT');
-        }
+//        if (env('DIST_SITE_PORT') != 80) {
+//            $domain .= ':' . env('DIST_SITE_PORT');
+//        }
         return $domain;
 
     }