瀏覽代碼

fensheng debug

ayHaru 4 年之前
父節點
當前提交
4a0c908f40

+ 1 - 0
data/config/lingzh/refill.ini.php

@@ -323,5 +323,6 @@ $phone_providers = [
     ['name' => 'amingjd', 'cfg' => $amingjd_phone],
     ['name' => 'legou', 'cfg' => $legou_phone],
     ['name' => 'feiniao', 'cfg' => $feiniao_phone],
+    ['name' => 'fensheng', 'cfg' => $fensheng_phone],
     ];
 $config['phone_providers'] = $phone_providers;

+ 1 - 1
helper/fcgisrv/LZRAccServer.php

@@ -28,7 +28,7 @@ class LZRAccServer extends BaseServer
             'callback/lingzh/baizeyd.php','callback/lingzh/aming.php','callback/lingzh/binghc.php',
             'callback/lingzh/ruishun.php','callback/lingzh/wuchen.php','callback/lingzh/yibao.php',
             'callback/lingzh/amingyd.php','callback/lingzh/chuka.php','callback/lingzh/amingjd.php',
-            'callback/lingzh/legou.php'  ,'callback/lingzh/feiniao.php'
+            'callback/lingzh/legou.php'  ,'callback/lingzh/feiniao.php', 'callback/lingzh/fensheng.php'
         ];
 
         $this->setExFiles($exfiles);

+ 0 - 1
helper/refill/api/lingzh/fensheng/RefillCallBack.php

@@ -17,7 +17,6 @@ class RefillCallBack implements refill\IRefillCallBack
 
     public function notify($params)
     {
-
         $status = $params['status'];
         $order_sn = $params['consumerNo'];
         $order_info = Model('vr_order')->getOrderInfo(['order_sn' => $order_sn]);

文件差異過大導致無法顯示
+ 3 - 0
helper/refill/api/lingzh/fensheng/琳珠网络科技话费接口充值协议 (1).doc


二進制
helper/refill/api/lingzh/fensheng/琳珠网络科技话费接口状态码详解 (2).docx


+ 8 - 0
racc/callback/lingzh/fensheng.php

@@ -0,0 +1,8 @@
+<?php
+$content = $_SERVER['post_content'];
+$inputs = json_decode($content,true);
+foreach ($inputs as $input) {
+    refill\util::push_notify('fensheng',$input);
+}
+
+echo ('SUCCESS');

+ 7 - 1
test/TestRefill.php

@@ -416,7 +416,13 @@ class TestRefill extends TestCase
     public function testFenshengPhone()
     {
         $providers = new refill\fensheng\RefillPhone([]);
-        $resp = $providers->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
+//        $resp = $providers->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
+        $resp = $providers->query(['order_sn' => '27511617764278021035']);
+//        $datas = '[{"orderNo":"F2104071058069438461","status":"001","consumerNo":"27511617764278021035","voucherNo":"510490688023364042","mobile":"13699279618"}]';
+//        $datas = json_decode($datas,true);
+//        foreach ($datas as $data) {
+//            refill\RefillFactory::instance()->notify('fensheng',$data);
+//        }
     }
 
     public function testLingzhPhone()