xiaoyu пре 3 година
родитељ
комит
bf7c83a802

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

@@ -5352,7 +5352,7 @@ $phone_providers = [
 //    ['name' => 'tianyan', 'cfg' => $tianyan_phone],
 //    ['name' => 'yunsuoyaoman', 'cfg' => $yunsuoyaoman_phone],
 //    ['name' => 'youhe', 'cfg' => $youhe_phone],
-//    ['name' => 'wenye', 'cfg' => $wenye_phone],
+    ['name' => 'wenye', 'cfg' => $wenye_phone],
 //    ['name' => 'xinyang', 'cfg' => $xinyang_phone],
     ['name' => 'guochuang', 'cfg' => $guochuang_phone],
     ['name' => 'xianghongrui', 'cfg' => $xianghongrui_phone],

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

@@ -11,8 +11,8 @@ class config
     const QUERY_URL = 'http://47.98.232.225/flow-receiver/fee/query/single';
     const BALANCE_URL = 'http://47.98.232.225/flow-receiver/fee/balance/query';
     const NOTIFY_URL = BASE_SITE_URL . '/mobile/callback/refill_wenye.php';
-    const ACCOUNT = 'yzwy1888';
-    const KEY = '7613c83df0fe41a1ade6603e58c7f714';
+    const ACCOUNT = 'bjyl';
+    const KEY = '9e02453b40b14a7daa36a98ca35f5f92';
 
     const ProductIDS = [
         mtopcard\ChinaMobileCard => [

+ 3 - 3
helper/refill/api/yl/wenye/椰子.txt

@@ -11,9 +11,9 @@ http://47.98.108.181/flow-receiver/fee/balance/query
 客户系统
 http://47.98.108.181/flow-consumer/login.html
 
-账号密码:yzwy1888
-密钥:
-7613c83df0fe41a1ade6603e58c7f714
+账号密码:bjyl
+
+密钥 9e02453b40b14a7daa36a98ca35f5f92
 
 
 移动快充产品编码		面值

+ 14 - 0
test/TestRefillYl.php

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