stanley-king преди 4 години
родител
ревизия
980ee73b9a
променени са 3 файла, в които са добавени 16 реда и са изтрити 3 реда
  1. 3 2
      helper/fcgi_server.php
  2. 1 1
      helper/refill/jiec/RefillCallBack.php
  3. 12 0
      test/TestRefill.php

+ 3 - 2
helper/fcgi_server.php

@@ -28,8 +28,9 @@ class fcgi_server
             'wxnotify.php','pub_wxnotify.php','alipay_notify_url.php','dispatch_notify.php','kdniao_notify.php',
             'cmbpay_notify.php','cmbpay_sign.php','wxauthor.php','api/wxLogin/index.php','api/wxLogin/callback.php',
             'signature.php',
-            'refill_suhc.php','refill_suhctm.php','refill_beixt.php','refill_bxtwt.php','refill_bjb.php','refill_xyz.php',
-            'refill_zzx.php','refill_inner.php','refill_jiec.php','refill_suhcpdd.php',
+            'refill_suhc.php','refill_suhctm.php','refill_suhcpdd.php',
+            'refill_beixt.php','refill_bxtwt.php','refill_bjb.php','refill_xyz.php',
+            'refill_zzx.php','refill_inner.php','refill_jiec.php',
             'bridge_shr.php'
         ];
         $path = BASE_ROOT_PATH . '/mobile/';

+ 1 - 1
helper/refill/jiec/RefillCallBack.php

@@ -28,7 +28,7 @@ class RefillCallBack implements refill\IRefillCallBack
 
     public function notify($params)
     {
-        $status = intval($params['result']);
+        $status = $params['result'];
         $order_sn = $params['op_no'];
         $order_info = Model('vr_order')->getOrderInfo(['order_sn' => $order_sn]);
         if (empty($order_info)) {

+ 12 - 0
test/TestRefill.php

@@ -332,7 +332,19 @@ class TestRefill extends TestCase
         ];
 
         $resp = http_request("https://www.xyzshops.cn/mobile/refill_bjb.php", $params, 'POST');
+    }
+
+    public function testJiecCB()
+    {
+        $params['result'] = 'fail';
+        $params['msg'] = '0';
+        $params['order'] = 'null';
+        $params['phone_no'] = '18500608333';
+        $params['amount'] = '30.00';
+        $params['op_no'] = '920663589436764221';
+        $params['sign'] = 'ab66d3e485bb05878772c8e7b1843f03';
 
+        $resp = http_request($this->mReqHost . "/mobile/refill_jiec.php", $params, 'POST');
     }