xiaoyu %!s(int64=3) %!d(string=hai) anos
pai
achega
201ccb0777

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

@@ -5370,7 +5370,7 @@ $phone_providers = [
 //    ['name' => 'tianyanman', 'cfg' => $tianyanman_phone],
 //    ['name' => 'shimier', 'cfg' => $shimier_phone],
 //    ['name' => 'zhongst_mix', 'cfg' => $zhongst_mix_phone],
-//    ['name' => 'jinfeng', 'cfg' => $jinfeng_phone],
+    ['name' => 'jinfeng', 'cfg' => $jinfeng_phone],
     ['name' => 'hangtong', 'cfg' => $hangtong_phone],
 //    ['name' => 'dashang', 'cfg' => $dashang_phone],
 //    ['name' => 'yuanta', 'cfg' => $yuanta_phone],

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

@@ -11,8 +11,8 @@ class config
     const QUERY_URL = 'http://47.108.199.201/flow-receiver/fee/query/single';
     const BALANCE_URL = 'http://47.108.199.201/flow-receiver/fee/balance/query';
     const NOTIFY_URL = BASE_SITE_URL . '/mobile/callback/refill_jinfeng.php';
-    const ACCOUNT = 'bjgy';
-    const KEY = '27c899a2946d4767b81f10b7dc3875fe';
+    const ACCOUNT = 'bjyl';
+    const KEY = 'f420f5cd7f434d53b1a93a49535705be';
 
     const ProductIDS = [
         mtopcard\ChinaMobileCard => [

+ 2 - 2
helper/refill/api/yl/jinfeng/北京国研.txt

@@ -1,6 +1,6 @@
-账号	bjgy
+账号 bjyl
 密码	123456
-密钥	27c899a2946d4767b81f10b7dc3875fe
+密钥 f420f5cd7f434d53b1a93a49535705be
 
 
 下单地址

+ 14 - 0
test/TestRefillYl.php

@@ -513,6 +513,7 @@ class TestRefillYl extends TestCase
         $provider = $this->getProvider('yiqian');
         $resp = $provider->balance();
     }
+
     public function testWenye()
     {
 //        $provider = $this->getProvider('wenye');
@@ -527,4 +528,17 @@ class TestRefillYl extends TestCase
         $data = $provider->notify($params);
     }
 
+    public function testJinfeng()
+    {
+//        $provider = $this->getProvider('jinfeng');
+//        $resp = $provider->balance();
+//        $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
+//        $resp = $provider->query(['order_sn' => '63601649383025688678']);
+
+        $body = '{"orderNo":"F2204080957259120259","status":"003","consumerNo":"63601649383025688678","voucherNo":"","mobile":"18500608333"}';
+        $params = json_decode($body, true);
+        $provider = $this->getProvider('jinfeng', 'RefillCallBack');
+        $ret = $provider->verify($params);
+        $data = $provider->notify($params);
+    }
 }