xiaoyu преди 3 години
родител
ревизия
2d08362514
променени са 4 файла, в които са добавени 43 реда и са изтрити 3 реда
  1. 1 1
      data/config/yl/refill.ini.php
  2. 26 0
      helper/refill/api/yl/qianqian/api.txt
  3. 2 2
      helper/refill/api/yl/qianqian/config.php
  4. 14 0
      test/TestRefillYl.php

+ 1 - 1
data/config/yl/refill.ini.php

@@ -5304,7 +5304,7 @@ $phone_providers = [
 //    ['name' => 'weiyiman', 'cfg' => $weiyiman_phone],
 //    ['name' => 'yonghe', 'cfg' => $yonghe_phone],
 //    ['name' => 'jumikc', 'cfg' => $jumi_phone],
-//    ['name' => 'qianqian', 'cfg' => $qianqian_phone],
+    ['name' => 'qianqian', 'cfg' => $qianqian_phone],
 //    ['name' => 'fengye', 'cfg' => $fengye_phone],
     ['name' => 'yunsuoyao', 'cfg' => $yunsuoyao_phone],
 //    ['name' => 'afd', 'cfg' => $afd_phone],

+ 26 - 0
helper/refill/api/yl/qianqian/api.txt

@@ -0,0 +1,26 @@
+账号 yelin
+
+密钥 1387a3bfa9f940aeab1f846effbc45e4
+
+请绑定我们回调ip:116.62.12.248
+
+
+移动快充产品编码  面值
+CMCCALLr30r    30
+CMCCALLr50r    50
+CMCCALLr100r   100
+CMCCALLr200r   200
+
+
+联通快充产品编码  面值
+CUCCALLr30r    30
+CUCCALLr50r    50
+CUCCALLr100r   100
+CUCCALLr200r   200
+
+
+电信快充产品编码  面值
+CTCCALLr30r    30
+CTCCALLr50r    50
+CTCCALLr100r   100
+CTCCALLr200r   200

+ 2 - 2
helper/refill/api/yl/qianqian/config.php

@@ -11,8 +11,8 @@ class config
     const BALANCE_URL = 'http://116.62.12.248/flow-receiver/fee/balance/query';
     const NOTIFY_URL = BASE_SITE_URL . '/mobile/callback/qianqian.php';
 
-    const ACCOUNT = 'lz16888';
-    const KEY = '5ea089c7f54a4ee692cfe8a84fcaee4b';
+    const ACCOUNT = 'yelin';
+    const KEY = '1387a3bfa9f940aeab1f846effbc45e4';
 
     const ProductIDS = [
         mtopcard\ChinaMobileCard  => [

+ 14 - 0
test/TestRefillYl.php

@@ -541,4 +541,18 @@ class TestRefillYl extends TestCase
         $ret = $provider->verify($params);
         $data = $provider->notify($params);
     }
+
+    public function testQianqian()
+    {
+//        $provider = $this->getProvider('qianqian');
+//        $resp = $provider->balance();
+//        $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
+//        $resp = $provider->query(['order_sn' => '32311649385385944534']);
+
+        $body = '{"orderNo":"F2204081036326692716","status":"019","consumerNo":"32311649385385944534","voucherNo":null,"mobile":"18500608333"}';
+        $params = json_decode($body, true);
+        $provider = $this->getProvider('qianqian', 'RefillCallBack');
+        $ret = $provider->verify($params);
+        $data = $provider->notify($params);
+    }
 }