ayHaru 4 years ago
parent
commit
1e19c9fb5c
1 changed files with 90 additions and 86 deletions
  1. 90 86
      data/config/win/refill.ini.php

+ 90 - 86
data/config/win/refill.ini.php

@@ -1,99 +1,103 @@
 <?php
 
-//速汇充京东加油通道
-$suhc_oil = ['name' => 'suhc', 'store_id' => 7, 'card_type' => ['sinopec'],
-    'amount' => [100 => ['goods_id' => 6290, 'price' => 96.8],
-        200 => ['goods_id' => 6291, 'price' => 193.6],
-        500 => ['goods_id' => 6292, 'price' => 484],
-        1000 => ['goods_id' => 6293, 'price' => 968]],
-    'period' => ['start' => '8:30', 'end' => '22:20'], 'refill_type' => 'api'];
+$config['refill_oil_specs'] = [100 , 200 , 500 , 1000 , 2000];
+$config['refill_phone_specs'] = [10 , 20 , 30 , 50 , 100 , 200 , 300 , 500];
+//充值额度基本表
+$config['refill_specs'] = [
+    'petrochina'    => $config['refill_oil_specs'],
+    'sinopec'       => $config['refill_oil_specs'],
+    'chinamobile'   => $config['refill_phone_specs'],
+    'chinaunicom'   => $config['refill_phone_specs'],
+    'chinatelecom'  => $config['refill_phone_specs']
+];
 
-//速汇充天猫加油通道
-$suhctm_oil = ['name' => 'suhctm', 'store_id' => 7, 'card_type' => ['sinopec'],
-    'amount' => [100 => ['goods_id' => 6290, 'price' => 96.8],
-        200 => ['goods_id' => 6291, 'price' => 193.6],
-        500 => ['goods_id' => 6292, 'price' => 484],
-        1000 => ['goods_id' => 6293, 'price' => 968]],
-    'period' => ['start' => '8:30', 'end' => '22:20'], 'refill_type' => 'api'];
 
-$suhcpdd_oil = ['name' => 'suhcpdd', 'store_id' => 7, 'card_type' => ['sinopec'],
-    'amount' => [
-//        100 => ['goods_id' => 6290, 'price' => 96.8],
-//        200 => ['goods_id' => 6291, 'price' => 193.6],
-//        500 => ['goods_id' => 6292, 'price' => 484],
-        1000 => ['goods_id' => 6293, 'price' => 968]
-    ],
-    'period' => ['start' => '8:30', 'end' => '22:20'], 'refill_type' => 'api'];
-
-//赵梓暄提供的加油通道
-$zzx_oil = ['name' => 'zzx', 'store_id' => 13, 'card_type' => ['petrochina', 'sinopec'],
-    'amount' => [100 => ['goods_id' => 6307, 'price' => 97.8],
-        200 => ['goods_id' => 6308, 'price' => 195.6],
-        500 => ['goods_id' => 6309, 'price' => 489],
-        1000 => ['goods_id' => 6310, 'price' => 978]], 'refill_type' => 'api'];
-
-//赵梓暄提供的加油通道
-$lx_oil = ['name' => 'lx', 'store_id' => 14, 'card_type' => ['sinopec'],
-    'amount' => [500 => ['goods_id' => 6322, 'price' => 479],
-        1000 => ['goods_id' => 6311, 'price' => 958] //,
-//        2000 => ['goods_id' => 6322, 'price' => 1916]
-    ],
-    'period' => ['start' => '14:00', 'end' => '19:00'], 'official_sn' => true, 'refill_type' => 'inner_store'];
-
-//赛虎
-$saihu_oil = ['name' => 'saihu', 'store_id' => 15, 'card_type' => ['sinopec'],
-    'amount' => [100 => ['goods_id' => 6313, 'price' => 97],
-        200 => ['goods_id' => 6314, 'price' => 194],
-        500 => ['goods_id' => 6315, 'price' => 485],
-        1000 => ['goods_id' => 6316, 'price' => 970],
-        2000 => ['goods_id' => 6317, 'price' => 1940]], 'refill_type' => 'api'];
-
-$oil_providers = [
-    ['name' => 'suhc', 'cfg' => $suhc_oil, 'opened' => false, 'sort' => 3],
-    ['name' => 'suhctm', 'cfg' => $suhctm_oil, 'opened' => true, 'sort' => 1],
-    ['name' => 'suhcpdd', 'cfg' => $suhcpdd_oil, 'opened' => true, 'sort' => 2],
-    ['name' => 'zzx', 'cfg' => $zzx_oil, 'opened' => false, 'sort' => 5],
-    ['name' => 'lx', 'cfg' => $lx_oil, 'opened' => false, 'sort' => 1],
-    ['name' => 'saihu', 'cfg' => $saihu_oil, 'opened' => false, 'sort' => 6]];
+//充值渠道配置表
+$oil_providers = [];
 $config['oil_providers'] = $oil_providers;
 
-$beixt_phone = ['name' => 'beixt', 'store_id' => 8, 'card_type' => ['chinamobile', 'chinaunicom', 'chinatelecom'],
-    'amount' => [50 => ['goods_id' => 6295, 'price' => 48.75],
-        100 => ['goods_id' => 6296, 'price' => 97.5],
-        200 => ['goods_id' => 6297, 'price' => 195]],
-    'refill_type' => 'api'];
+define('ZERO_GOODS_ID', 8);
+
+$baidu_phone = ['name' => 'baizeyd', 'store_id' => 32,
+    'amount' => [
+        10 => [['goods_id' => 1, 'price' => 9.51, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 1, 'price' => 9.61, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 1, 'price' => 9.81, 'quality' => 2, 'card_type' => 'chinamobile']],
 
-$bxtwt_phone = ['name' => 'bxtwt', 'store_id' => 10, 'card_type' => ['chinamobile', 'chinaunicom', 'chinatelecom'],
-    'amount' => [50 => ['goods_id' => 6298, 'price' => 48],
-        100 => ['goods_id' => 6299, 'price' => 96],
-        200 => ['goods_id' => 6300, 'price' => 192]],
-    'refill_type' => 'api'];
+        20 => [['goods_id' => 2, 'price' => 19.02, 'card_type' => 'chinaunicom,chinatelecom']],
+        30 => [['goods_id' => 3, 'price' => 28.53, 'card_type' => 'chinamobile,chinatelecom']],
+        50 => [['goods_id' => 4, 'price' => 47.55, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
+        100 => [['goods_id' => 5,'price' => 95.1, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']]
+    ],
+    'official_sn' => true, 'refill_type' => 'api'];
 
-$bjb_phone = ['name' => 'bjb', 'store_id' => 12, 'card_type' => ['chinamobile' ,/*'chinaunicom', */'chinatelecom'],
-    'amount' => [10 => ['goods_id' => 6305, 'price' => 9.55],
-        20 => ['goods_id' => 6306, 'price' => 19.1],
-        30 => ['goods_id' => 6301, 'price' => 28.65],
-        50 => ['goods_id' => 6302, 'price' => 47.75],
-        100 => ['goods_id' => 6303, 'price' => 95.5],
-        200 => ['goods_id' => 6304, 'price' => 191]], 'official_sn' => true, 'refill_type' => 'api'];
+$aming_phone = ['name' => 'aming', 'store_id' => 34,
+    'amount' => [
+        10 => [['goods_id' => 9, 'price' => 9.5, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 9, 'price' => 9.6, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        20 => [['goods_id' => 10, 'price' => 19, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 10, 'price' => 19.2, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        30 => [['goods_id' => 11, 'price' => 28.5, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 11, 'price' => 28.8, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        50 => [['goods_id' => 12, 'price' => 47.5, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 12, 'price' => 48, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        100 => [['goods_id' => 13, 'price' => 95, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 13, 'price' => 96, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        200 => [['goods_id' => 14, 'price' => 190, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 14, 'price' => 192, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        300 => [['goods_id' => 15, 'price' => 285, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 15, 'price' => 288, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        500 => [['goods_id' => 16, 'price' => 475, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 16, 'price' => 480, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+    ],
+    'official_sn' => true, 'refill_type' => 'api'];
 
-$yifa_phone = ['name' => 'yifa', 'store_id' => 16, 'card_type' => ['chinamobile'],
-    'amount' => [30 => ['goods_id' => 6318, 'price' => 28.65],
-        50 => ['goods_id' => 6319, 'price' => 47.75],
-        100 => ['goods_id' => 6320, 'price' => 95.5],
-        200 => ['goods_id' => 6321, 'price' => 191]],
-    'refill_type' => 'api'];
+$binghc_phone = ['name' => 'binghc', 'store_id' => 35,
+    'amount' => [
+        10 => [['goods_id' => 17, 'price' => 9.5, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 17, 'price' => 9.6, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        20 => [['goods_id' => 18, 'price' => 19, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 18, 'price' => 19.2, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        30 => [['goods_id' => 19, 'price' => 28.5, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 19, 'price' => 28.8, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        50 => [['goods_id' => 20, 'price' => 47.5, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 20, 'price' => 48, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        100 => [['goods_id' => 21, 'price' => 95, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 21, 'price' => 96, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        200 => [['goods_id' => 22, 'price' => 190, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 22, 'price' => 192, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        300 => [['goods_id' => 23, 'price' => 285, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 23, 'price' => 288, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        500 => [['goods_id' => 24, 'price' => 475, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 24, 'price' => 480, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+    ],
+    'official_sn' => true, 'refill_type' => 'api'];
 
-$jiec_phone = ['name' => 'jiec', 'store_id' => 17, 'card_type' => ['chinaunicom', 'chinatelecom'],
-    'amount' => [30 => ['goods_id' => 6323, 'price' => 28.65],
-        50 => ['goods_id' => 6324, 'price' => 47.75],
-        100 => ['goods_id' => 6325, 'price' => 95.5],
-        200 => ['goods_id' => 6326, 'price' => 191]], 'official_sn' => true, 'refill_type' => 'api'];
+$ruishun_phone = ['name' => 'ruishun', 'store_id' => 36,
+    'amount' => [
+        10 => [['goods_id' => 25, 'price' => 9.5, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 25, 'price' => 9.6, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        20 => [['goods_id' => 26, 'price' => 19, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 26, 'price' => 19.2, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        30 => [['goods_id' => 27, 'price' => 28.5, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 27, 'price' => 28.8, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        50 => [['goods_id' => 28, 'price' => 47.5, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 28, 'price' => 48, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        100 => [['goods_id' => 29, 'price' => 95, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 29, 'price' => 96, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        200 => [['goods_id' => 30, 'price' => 190, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 30, 'price' => 192, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        300 => [['goods_id' => 31, 'price' => 285, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 31, 'price' => 288, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+        500 => [['goods_id' => 32, 'price' => 475, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+            ['goods_id' => 32, 'price' => 480, 'quality' => 2, 'card_type' => 'chinaunicom,chinatelecom']],
+    ],
+    'official_sn' => true, 'refill_type' => 'api'];
 
 $phone_providers = [
-    ['name' => 'beixt', 'cfg' => $beixt_phone, 'opened' => false, 'sort' => 1],
-    ['name' => 'bxtwt', 'cfg' => $bxtwt_phone, 'opened' => false, 'sort' => 2],
-    ['name' => 'bjb', 'cfg' => $bjb_phone, 'opened' => false, 'sort' => 2],
-    ['name' => 'yifa', 'cfg' => $yifa_phone, 'opened' => false, 'sort' => 5],
-    ['name' => 'jiec', 'cfg' => $jiec_phone, 'opened' => true, 'sort' => 1]];
+    ['name' => 'baizeyd', 'cfg' => $baidu_phone, 'opened' => true, 'sort' => 1],
+    ['name' => 'aming', 'cfg' => $aming_phone, 'opened' => true, 'sort' => 1],
+    ['name' => 'binghc', 'cfg' => $binghc_phone, 'opened' => true, 'sort' => 1],
+    ['name' => 'ruishun', 'cfg' => $ruishun_phone, 'opened' => true, 'sort' => 1],
+];
 $config['phone_providers'] = $phone_providers;