xiaoyu 3 лет назад
Родитель
Сommit
109e05efb9
2 измененных файлов с 9 добавлено и 9 удалено
  1. 1 1
      helper/refill/api/xyz/yiqian/config.php
  2. 8 8
      test/TestRefill.php

+ 1 - 1
helper/refill/api/xyz/yiqian/config.php

@@ -10,7 +10,7 @@ class config
     const BALANCE_URL = 'http://118.31.46.58:8080/api/queryBalance';
 
     const MCH_ID = 'M00221';
-    const KEY = '0xHGoi3X6d78ZGfeapushi0UmgtTjghoqowg';
+    const KEY = '0xHGoi3X6d78ZGfeai0UmgtTjghoqowg';
     const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_yiqian.php";
     const operator = [
         mtopcard\ChinaMobileCard => '移动',

+ 8 - 8
test/TestRefill.php

@@ -1420,16 +1420,16 @@ class TestRefill extends TestCase
 
     public function testYiqian()
     {
-//        $provider = $this->getProvider('yiqian');
+        $provider = $this->getProvider('yiqian');
 //        $resp = $provider->balance();
-//        $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]);
-//        $resp = $provider->query(['order_sn' => '12871637568430713782']);
+//        $resp = $provider->add(185001234561608333, 5, 10, ['order_sn' => $this->make_sn()]);
+        $resp = $provider->query(['order_sn' => '58661639626089905328']);
 
-        $body = '{"extOrderId":"12871637568430713782","orderId":"R2021112216240026238817","salePrice":"9.9950","sign":"b42f61bfb59f9f36c26c68e4f37f5a19","state":"4","exchangeTraded":"110103308002111221607170298685"}';
-        $params = json_decode($body, true);
-        $provider = $this->getProvider('yiqian','RefillCallBack');
-        $ret = $provider->verify($params);
-        $resp = $provider->notify($params);
+//        $body = '{"extOrderId":"12871637568430713782","orderId":"R2021112216240026238817","salePrice":"9.9950","sign":"b42f61bfb59f9f36c26c68e4f37f5a19","state":"4","exchangeTraded":"110103308002111221607170298685"}';
+//        $params = json_decode($body, true);
+//        $provider = $this->getProvider('yiqian','RefillCallBack');
+//        $ret = $provider->verify($params);
+//        $resp = $provider->notify($params);
     }
 
     public function testYinghuochong()