stanley-king 4 vuotta sitten
vanhempi
commit
f833758658
1 muutettua tiedostoa jossa 8 lisäystä ja 5 poistoa
  1. 8 5
      helper/refill/RefillFactory.php

+ 8 - 5
helper/refill/RefillFactory.php

@@ -88,8 +88,9 @@ class RefillFactory
             self::$stInstance = new RefillFactory();
         }
 
-//        if(defined('MOBILE_SERVER') && MOBILE_SERVER === true)
+        if(defined('MOBILE_SERVER') && MOBILE_SERVER === true)
         {
+            Log::record("MOBILE_SERVER defined call load",Log::DEBUG);
             if(StatesHelper::fetch_state('channel')) {
                 Log::record("RefillFactory reload channel config.",Log::DEBUG);
                 self::$stInstance->load();
@@ -106,10 +107,12 @@ class RefillFactory
 
     private function __construct()
     {
-//        if (!defined('MOBILE_SERVER') || MOBILE_SERVER === false)
-//        {
-//            $this->load();
-//        }
+        if (defined('MOBILE_SERVER') && MOBILE_SERVER === false) {
+            Log::record("MOBILE_SERVER defined dont call load",Log::DEBUG);
+        } else {
+            Log::record("MOBILE_SERVER has not defined and call load",Log::DEBUG);
+            $this->load();
+        }
     }
 
     public function goods()