stanley-king %!s(int64=4) %!d(string=hai) anos
pai
achega
9b1e2bd02c
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      helper/refill/yifa/RefillPhone.php
  2. 1 1
      test/TestRefill.php

+ 1 - 1
helper/refill/yifa/RefillPhone.php

@@ -39,7 +39,7 @@ class RefillPhone extends refill\IRefillPhone
         }
 
         $resp = json_decode($resp,true);
-        if($resp['code'] == 10000 && $resp['message'] == 'SUCCESS') {
+        if($resp['code'] == 10000 && $resp['message'] == 'success') {
             $result = $resp['result'];
             return [true,$result['order_sn']];
         }

+ 1 - 1
test/TestRefill.php

@@ -91,7 +91,7 @@ class TestRefill extends TestCase
     public function testYifaPhone()
     {
         $providers = new refill\yifa\RefillPhone([]);
-        $resp = $providers->add(15120035568, 5, 100, ['order_sn' => $this->make_sn()]);
+        $resp = $providers->add(15120035568, 5, 50, ['order_sn' => $this->make_sn()]);
     }
 
     public function testYifaCB()