浏览代码

lingzhman

xiaoyu 3 年之前
父节点
当前提交
bd6e50ad54

+ 1 - 1
helper/refill/api/xyz/lingzhman/RefillCallBack.php

@@ -22,7 +22,7 @@ class RefillCallBack implements refill\IRefillCallBack
 
 
         $order_info = Model('vr_order')->getOrderInfo(['order_sn' => $order_sn]);
         $order_info = Model('vr_order')->getOrderInfo(['order_sn' => $order_sn]);
         if (empty($order_info)) {
         if (empty($order_info)) {
-//            return [false, false, false,false];
+            return [false, false, false,false];
         }
         }
 
 
         $order_id = $order_info['order_id'];
         $order_id = $order_info['order_id'];

+ 1 - 2
helper/refill/api/xyz/lingzhman/config.php

@@ -8,8 +8,7 @@ class config
 {
 {
     const ORDER_URL = 'http://47.99.65.204/flow-receiver/fee/recharge';
     const ORDER_URL = 'http://47.99.65.204/flow-receiver/fee/recharge';
     const QUERY_URL = 'http://47.99.65.204/flow-receiver/fee/query/single';
     const QUERY_URL = 'http://47.99.65.204/flow-receiver/fee/query/single';
-//    const NOTIFY_URL = BASE_SITE_URL . '/mobile/callback/refill_lingzhman.php';
-    const NOTIFY_URL = "https://www.xyzshops.cn/mobile/signature.php";
+    const NOTIFY_URL = BASE_SITE_URL . '/mobile/callback/refill_lingzhman.php';
     const ACCOUNT = 'yzmc';
     const ACCOUNT = 'yzmc';
     const KEY = 'b225132ca8fc47d98c245fc231623dbb';
     const KEY = 'b225132ca8fc47d98c245fc231623dbb';
 
 

+ 2 - 2
test/TestRefill.php

@@ -456,10 +456,10 @@ class TestRefill extends TestCase
     {
     {
         $providers = new refill\lingzhman\RefillPhone([]);
         $providers = new refill\lingzhman\RefillPhone([]);
 //        $resp = $providers->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
 //        $resp = $providers->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
-//        $resp = $providers->query(['order_sn' => '60191625211393862930']);
+        $resp = $providers->query(['order_sn' => '29771625215707976538']);
         $data = '{"orderNo":"F2107021536431562574","status":"019","consumerNo":"60191625211393862930","voucherNo":null,"mobile":"18500608333"}';
         $data = '{"orderNo":"F2107021536431562574","status":"019","consumerNo":"60191625211393862930","voucherNo":null,"mobile":"18500608333"}';
         $params = json_decode($data, true);
         $params = json_decode($data, true);
-        refill\RefillFactory::instance()->notify('lingzhman',$params);
+//        refill\RefillFactory::instance()->notify('lingzhman',$params);
     }
     }
 
 
     public function testTongluPhone()
     public function testTongluPhone()