ayHaru 4 anni fa
parent
commit
f09f1dcca0
1 ha cambiato i file con 7 aggiunte e 4 eliminazioni
  1. 7 4
      test/TestRefill.php

+ 7 - 4
test/TestRefill.php

@@ -275,8 +275,10 @@ class TestRefill extends TestCase
     public function testFeiniaoPhone()
     {
         $providers = new refill\feiniao\RefillPhone([]);
-//        $resp = $providers->add('18500608333', 5, 100, ['order_sn' => $this->make_sn()]);
-//        $resp = $providers->query(['order_sn' => '64591617090761169983']);
+//        $order_sn = $this->make_sn();
+//        Log::record($order_sn, Log::DEBUG);
+//        $resp = $providers->add('18500608333', 5, 100, ['order_sn' => $order_sn]);
+        $resp = $providers->query(['order_sn' => '15441617095424773754']);
         $params['result'] = 'fail';
         $params['msg'] = '0';
         $params['order'] = 'null';
@@ -285,7 +287,7 @@ class TestRefill extends TestCase
         $params['op_no'] = '64591617090761169983';
         $params['settle'] = '0';
         $params['sign'] = '907d2640f96e8d78d59202d090ddb470';
-        refill\RefillFactory::instance()->notify('feiniao',$params);
+//        refill\RefillFactory::instance()->notify('feiniao',$params);
     }
 
     public function testTongyPhone()
@@ -398,7 +400,8 @@ class TestRefill extends TestCase
     public function testAfandnewPhone()
     {
         $providers = new refill\afandnew\RefillPhone([]);
-        $resp = $providers->query(['order_sn' => '54481615109732967195']);
+        $resp = $providers->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
+//        $resp = $providers->query(['order_sn' => '54481615109732967195']);
 //        $input['order_id'] = '54481615109732967195';
 //        $input['mchid'] = 10002;
 //        $input['tel'] = 13699279618;