浏览代码

update afandnew config and ratio

ayHaru 4 年之前
父节点
当前提交
3d310e2197
共有 2 个文件被更改,包括 45 次插入11 次删除
  1. 32 8
      data/config/xyz/refill.ini.php
  2. 13 3
      helper/refill/api/xyz/afandnew/config.php

+ 32 - 8
data/config/xyz/refill.ini.php

@@ -213,14 +213,38 @@ $bjbyd_phone = ['name' => 'bjbyd', 'store_id' => 24,'qualitys' => '1',
 
 $afandnew_phone = ['name' => 'afandnew', 'store_id' => 25,'qualitys' => '1',
     'amount' => [
-        10 => [['goods_id' => 6454, 'price' => 9.53, 'quality' => 1, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
-        20 => [['goods_id' => 6455, 'price' => 19.06, 'quality' => 1, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
-        30 => [['goods_id' => 6386, 'price' => 28.59, 'quality' => 1, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
-        50 => [['goods_id' => 6371, 'price' => 47.65, 'quality' => 1, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
-        100 => [['goods_id' => 6372, 'price' => 95.3, 'quality' => 1, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
-        200 => [['goods_id' => 6373, 'price' => 190.6, 'quality' => 1, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
-        300 => [['goods_id' => 6387, 'price' => 285.9, 'quality' => 1, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
-        500 => [['goods_id' => 6388, 'price' => 476.5, 'quality' => 1, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']]
+        10 => [
+            ['goods_id' => 6454, 'price' => 9.52, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 6454, 'price' => 9.5, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom']
+        ],
+        20 => [
+            ['goods_id' => 6455, 'price' => 19.04, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 6455, 'price' => 19, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom']
+        ],
+        30 => [
+            ['goods_id' => 6386, 'price' => 28.56, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 6386, 'price' => 28.5, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom']
+        ],
+        50 => [
+            ['goods_id' => 6371, 'price' => 47.6, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 6371, 'price' => 47.5, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom']
+        ],
+        100 => [
+            ['goods_id' => 6372, 'price' => 95.2, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 6372, 'price' => 95, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom']
+        ],
+        200 => [
+            ['goods_id' => 6373, 'price' => 190.4, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 6373, 'price' => 190, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom']
+        ],
+        300 => [
+            ['goods_id' => 6387, 'price' => 285.6, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 6387, 'price' => 285, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom']
+        ],
+        500 => [
+            ['goods_id' => 6388, 'price' => 476, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 6388, 'price' => 475, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom']
+        ]
     ],
     'refill_type' => 'api'];
 

+ 13 - 3
helper/refill/api/xyz/afandnew/config.php

@@ -15,8 +15,18 @@ class config
     const ExtHeaders = ['Content-Type: application/x-www-form-urlencoded'];
 
     const ProductIDS = [
-        mtopcard\ChinaMobileCard  => [50 => '2110000050000', 100 => '21100000100000', 200 => '21100000200101'],
-        mtopcard\ChinaUnicomCard  => [50 => '2310000050101', 100 => '23100000100101', 200 => '23100000200101'],
-        mtopcard\ChinaTelecomCard => [50 => '2210000050101', 100 => '22100000100101', 200 => '22100000200101']
+        mtopcard\ChinaMobileCard  => [
+            10 => '2110000010101', 20 => '2110000020101', 30 => '2110000030101',
+            50 => '2110000050000', 100 => '21100000100000', 200 => '21100000200101'
+        ],
+        mtopcard\ChinaUnicomCard  => [
+            50 => '2310000050101', 100 => '23100000100101', 200 => '23100000200101',
+            300 => '23100000300101'
+        ],
+        mtopcard\ChinaTelecomCard => [
+            30 => '2210000030101',
+            50 => '2210000050101', 100 => '22100000100101', 200 => '22100000200101',
+            300 => '22100000300101', 500 => '22100000500101'
+        ]
     ];
 }