Kaynağa Gözat

add xyzt docker compose file to 45

stanley-king 4 yıl önce
ebeveyn
işleme
9a89fa344a

+ 2 - 2
docker/compose/xyzt-acc/docker-compose.yml

@@ -62,7 +62,7 @@ services:
       - ../../../:/var/www/html
       - /nfs/upload:/var/www/html/data/upload
       - /mnt/shoplog:/var/www/html/data/log
-      - /nfs/upload:/var/www/html/data/upload
+      - ../../conf/php/xyzt-45-php.ini:/usr/local/etc/php/php.ini
       - ../../conf/php-fpm/php-fpm.conf:/usr/local/etc/php-fpm.conf
     container_name: "panda-web"
     command: [php-fpm]
@@ -74,7 +74,7 @@ services:
       - ../../../:/var/www/html
       - /nfs/upload:/var/www/html/data/upload
       - /mnt/shoplog:/var/www/html/data/log
-      - /nfs/upload:/var/www/html/data/upload
+      - ../../conf/php/xyzt-45-php.ini:/usr/local/etc/php/php.ini
       - ../../conf/crontab/root:/var/spool/cron/crontabs/root
     container_name: "panda-crontab"
     command: [crond,"-f"]

+ 1 - 0
helper/refill/IRefill.php

@@ -48,6 +48,7 @@ abstract class IRefill
 
         $this->mPeriod = $cfgs['period'];
         $this->mOfficialSN = $cfgs['official_sn'] ?? false;
+
         $this->mOpened = true;
         $this->mSort = 65536;
     }

+ 3 - 4
helper/refill/ProviderManager.php

@@ -133,7 +133,6 @@ class ProviderManager
             $this->mProviderNames = array_unique($this->mProviderNames);
 
             $channels = $this->read_channel();
-
             foreach ($channels as $item)
             {
                 $name = $item['name'];
@@ -158,7 +157,7 @@ class ProviderManager
             $name = $item['name'];
             $val = ['name' => $name,
                     'type' => intval($item['type']),
-                    'opened' => (intval($item['opened']) == 1),
+                    'opened' => intval($item['opened']) == 1,
                     'sort' => intval($item['sort'])];
             $result[$name] = $val;
         }
@@ -174,9 +173,9 @@ class ProviderManager
         $key = "{$card_type}-{$spec}";
         Log::record("quality = {$quality} , key = {$key}",Log::DEBUG);
 
-        if(array_key_exists($key,$qnames)) {
+        if(array_key_exists($key,$qnames))
+        {
             $names = $qnames[$key];
-
             $providers = [];
             foreach ($names as $name)
             {