Browse Source

yl pengxinda

xiaoyu 3 years atrás
parent
commit
210e928ce1

+ 11 - 11
data/config/yl/refill.ini.php

@@ -5100,16 +5100,16 @@ $ruizhi_tax_phone = ['name' => 'ruizhi_tax', 'store_id' => 202, 'qualitys' => '2
 
 $pengxinda_phone = ['name' => 'pengxinda', 'store_id' => 203,'qualitys' => '2',
     'amount' => [
-//        10 => [
-//            ['goods_id' => 7706, 'price' => 10.37, 'quality' => 2, 'card_type' => 'chinamobile'],
-//            ['goods_id' => 7706, 'price' => 10.37, 'quality' => 2, 'card_type' => 'chinaunicom'],
-//            ['goods_id' => 7706, 'price' => 10.37, 'quality' => 2, 'card_type' => 'chinatelecom']
-//        ],
-//        20 => [
-//            ['goods_id' => 7707, 'price' => 20.74, 'quality' => 2, 'card_type' => 'chinamobile'],
-//            ['goods_id' => 7707, 'price' => 20.74, 'quality' => 2, 'card_type' => 'chinaunicom'],
-//            ['goods_id' => 7707, 'price' => 20.74, 'quality' => 2, 'card_type' => 'chinatelecom']
-//        ],
+        10 => [
+            ['goods_id' => 7706, 'price' => 10.8, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7706, 'price' => 10.8, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7706, 'price' => 10.8, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+        20 => [
+            ['goods_id' => 7707, 'price' => 21.6, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7707, 'price' => 21.6, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7707, 'price' => 21.6, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
         30 => [
 //            ['goods_id' => 7708, 'price' => 31.11, 'quality' => 2, 'card_type' => 'chinamobile'],
             ['goods_id' => 7708, 'price' => 31.065, 'quality' => 2, 'card_type' => 'chinaunicom'],
@@ -5493,7 +5493,7 @@ $phone_providers = [
 //    ['name' => 'hangtongyj', 'cfg' => $hangtongyj_phone],
     ['name' => 'ruixundaman', 'cfg' => $ruixundaman_phone],
 //    ['name' => 'ruizhi_tax', 'cfg' => $ruizhi_tax_phone],
-//    ['name' => 'pengxinda', 'cfg' => $pengxinda_phone],
+    ['name' => 'pengxinda', 'cfg' => $pengxinda_phone],
     ['name' => 'huazhong', 'cfg' => $huazhong_phone],
     ['name' => 'yamiaoman', 'cfg' => $yamiaoman_phone],
 //    ['name' => 'kailinyu', 'cfg' => $kailinyu_phone],

+ 14 - 4
helper/refill/api/yl/pengxinda/API信息.txt

@@ -1,7 +1,7 @@
 
-账号:beijingyz
-密码:yz12345
-秘钥:DA01B4249BA58CB8738A8BDA58A253E7
+账号:beijingqdw
+密码:123456
+秘钥:52069208FD1101B4BC7C86C47A8F40AD
 
 查询地址:http://39.105.7.52:8081/api/products.jsp
 充值地址:http://39.105.7.52:8081/api/recharge.jsp
@@ -28,4 +28,14 @@
  11002100 	电信电渠全国100	
  11002200 	电信电渠全国200	
  11002300 	电信电渠全国300	
- 11002500 	电信电渠全国500
+ 11002500 	电信电渠全国500
+
+ 2022.4.13新增
+ 100210	移动话费10
+ 100220	移动话费20
+
+ 1200210	联通10
+ 1200220	联通20
+
+ 1100210	电信10
+ 1100220	电信20

+ 8 - 2
helper/refill/api/yl/pengxinda/config.php

@@ -9,11 +9,13 @@ class config
     const QUERY_URL = 'http://39.105.7.52:8081/api/recharge_result.jsp';
     const BALANCE_URL = 'http://39.105.7.52:8081/api/balance.jsp';
 
-    const API_USER_ID = 'beijingyz';
-    const KEY = 'DA01B4249BA58CB8738A8BDA58A253E7';
+    const API_USER_ID = 'beijingqdw';
+    const KEY = '52069208FD1101B4BC7C86C47A8F40AD';
     const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_pengxinda.php";
     const Product = [
         mtopcard\ChinaMobileCard => [
+            10  => 100210,
+            20  => 100220,
             50  => 100250,
             100 => 1002100,
             200 => 1002200,
@@ -21,6 +23,8 @@ class config
             500 => 1002500
         ],
         mtopcard\ChinaUnicomCard => [
+            10  => 1200210,
+            20  => 1200220,
             30  => 1200230,
             50  => 1200250,
             100 => 12002100,
@@ -28,6 +32,8 @@ class config
             300 => 12002300
         ],
         mtopcard\ChinaTelecomCard => [
+            10  => 1100210,
+            20  => 1100220,
             50  => 1100250,
             100 => 11002100,
             200 => 11002200,

+ 6 - 0
test/TestRefillYl.php

@@ -597,4 +597,10 @@ class TestRefillYl extends TestCase
         $provider = $this->getProvider('huoshenguoman');
         $resp = $provider->balance();
     }
+
+    public function testPengxinda()
+    {
+        $provider = $this->getProvider('pengxinda');
+        $resp = $provider->balance();
+    }
 }