ayHaru 4 yıl önce
ebeveyn
işleme
0945f56154

+ 4 - 4
helper/refill/api/xyz/afandnew/config.php

@@ -3,7 +3,7 @@
 
 namespace refill\afandnew;
 
-
+use mtopcard;
 class config
 {
     const ORDER_URL = 'http://ddd.nvtu.ren/gateway/recharge';
@@ -14,8 +14,8 @@ class config
     const NOTIFY_URL =  BASE_SITE_URL."/mobile/refill_afandnew.php";
     const ExtHeaders = ['Content-Type: application/x-www-form-urlencoded'];
     const ProductIDS = [
-        4 => [50 => '2110000050000', 100 => '21100000100000', 200 => '21100000200101'],
-        5 => [50 => '2310000050101', 100 => '23100000100101', 200 => '23100000200101'],
-        6 => [50 => '2210000050101', 100 => '22100000100101', 200 => '22100000200101'],
+        mtopcard\ChinaMobileCard => [50 => '2110000050000', 100 => '21100000100000', 200 => '21100000200101'],
+        mtopcard\ChinaUnicomCard => [50 => '2310000050101', 100 => '23100000100101', 200 => '23100000200101'],
+        mtopcard\ChinaTelecomCard => [50 => '2210000050101', 100 => '22100000100101', 200 => '22100000200101'],
     ];
 }

+ 2 - 2
test/TestRefill.php

@@ -382,8 +382,8 @@ class TestRefill extends TestCase
     public function testWantongPhone()
     {
         $providers = new refill\wantong\RefillPhone([]);
-//        $resp = $providers->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
-        $resp = $providers->query(['order_sn' => '20941616115610023539']);
+        $resp = $providers->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
+//        $resp = $providers->query(['order_sn' => '50261617199864602428']);
     }
 
     public function testXunyinPhone()