ayHaru 3 lat temu
rodzic
commit
0e68754b1f
2 zmienionych plików z 350 dodań i 558 usunięć
  1. 340 558
      data/config/win/refill.ini.php
  2. 10 0
      test/TestRefill.php

Plik diff jest za duży
+ 340 - 558
data/config/win/refill.ini.php


+ 10 - 0
test/TestRefill.php

@@ -349,6 +349,16 @@ class TestRefill extends TestCase
         refill\RefillFactory::instance()->notify('weishengywt', $params);
     }
 
+    public function testWeishengyJDPhone()
+    {
+        $providers = new refill\weishengyjd\RefillPhone([]);
+//        $resp = $providers->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
+//        $resp = $providers->query(['order_sn' => '14261620887423822879']);
+        $data = '{"szOrderId":"14261620887423822879","fSalePrice":"44.0","szAgentId":"200050","nFlag":"3","szVerifyString":"3cceef390602058e1d2fdde2e07636a4","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"50"}';
+        $params = json_decode($data, true);
+        refill\RefillFactory::instance()->notify('weishengyjd', $params);
+    }
+
     public function testZeheng()
     {
         $providers = new refill\zeheng\RefillOil([]);