|
@@ -66,17 +66,18 @@
|
|
|
//
|
|
|
//$config['phone_providers'] = $phone_providers;
|
|
|
|
|
|
-define('ZERO_GOODS_ID',6245);
|
|
|
+define('ZERO_GOODS_ID', 6245);
|
|
|
+
|
|
|
+$config['refill_oil_specs'] = [100, 200, 500, 1000, 2000];
|
|
|
+$config['refill_phone_specs'] = [10, 20, 30, 50, 100, 200, 300, 500];
|
|
|
|
|
|
-$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']
|
|
|
+ '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']
|
|
|
];
|
|
|
|
|
|
|
|
@@ -84,12 +85,15 @@ $config['refill_specs'] = [
|
|
|
$oil_providers = [];
|
|
|
$config['oil_providers'] = $oil_providers;
|
|
|
|
|
|
-$baidu_phone = ['name' => 'baidu', 'store_id' => 8, 'card_type' => ['chinamobile', 'chinaunicom', 'chinatelecom'],
|
|
|
- 'amount' => [10 => ['goods_id' => 6245, 'price' => 9.51],
|
|
|
- 20 => ['goods_id' => 6247, 'price' => 19.02],
|
|
|
- 30 => ['goods_id' => 6249, 'price' => 28.53],
|
|
|
- 50 => ['goods_id' => 6250, 'price' => 47.55],
|
|
|
- 100 => ['goods_id' => 6251, 'price' => 95.1]],
|
|
|
+$baidu_phone = ['name' => 'baidu', 'store_id' => 8,
|
|
|
+ 'amount' => [
|
|
|
+ 10 => [['goods_id' => 6245, 'price' => 9.51, 'card_type' => 'chinaunicom'],
|
|
|
+ ['goods_id' => 6245, 'price' => 9.81, 'card_type' => 'chinamobile']],
|
|
|
+ 20 => [['goods_id' => 6247, 'price' => 19.02, 'card_type' => 'chinaunicom,chinatelecom']],
|
|
|
+ 30 => [['goods_id' => 6249, 'price' => 28.53, 'card_type' => 'chinamobile,chinatelecom']],
|
|
|
+ 50 => [['goods_id' => 6250, 'price' => 47.55, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
|
|
|
+ 100 =>[['goods_id' => 6251, 'price' => 95.1, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']]
|
|
|
+ ],
|
|
|
'official_sn' => true, 'refill_type' => 'api'];
|
|
|
$phone_providers = [
|
|
|
['name' => 'baidu', 'cfg' => $baidu_phone, 'opened' => true, 'sort' => 1]];
|