xiaoyu 2 tahun lalu
induk
melakukan
86184c6b1e
2 mengubah file dengan 5 tambahan dan 5 penghapusan
  1. 1 1
      helper/refill/api/xyz/gdsinopec/RefillOil.php
  2. 4 4
      test/TestRefill.php

+ 1 - 1
helper/refill/api/xyz/gdsinopec/RefillOil.php

@@ -136,7 +136,7 @@ class RefillOil extends refill\IRefillOil
         }
         $product_id = $product['id'];
         $sku = $product['sku'];
-        $params = $this->req_params($card_no, $province, $product_id, $order_sn, $sku);
+        $params = $this->req_params($card_no, $supplier_origin, $product_id, $order_sn, $sku);
 
         $url = config::ORDER_URL . $access_token;
         $resp = http_post_data($url, $params, config::ExtHeaders, $net_errno);

+ 4 - 4
test/TestRefill.php

@@ -2310,10 +2310,10 @@ class TestRefill extends TestCase
         $provider = $this->getProvider('gdsinopec','RefillOil');
 //        [$state, $access_token] = $provider->get_access_token();
 //        $resp = $provider->find_list($supplier_origin);
-        $resp = $provider->add(13699279618, 4, 50, [
-            'order_sn' => $this->make_sn(), 'province' => 19
-        ]);
-        $resp = $provider->query(['order_sn' => '42381653467866036142']);
+//        $resp = $provider->add(13699279618, 4, 50, [
+//            'order_sn' => $this->make_sn(), 'province' => 19
+//        ]);
+        $resp = $provider->query(['order_sn' => '26541655364666698182']);
 
     }