Selaa lähdekoodia

debug bxtwt signature

stanley-king 4 vuotta sitten
vanhempi
commit
d5c50a3085

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

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

+ 10 - 5
helper/refill/bxtwt/RefillPhone.php

@@ -6,7 +6,6 @@ require_once(BASE_HELPER_PATH . '/refill/bxtwt/config.php');
 
 use refill;
 use Log;
-use refill\bxtwt\config;
 
 class RefillPhone extends refill\IRefillPhone
 {
@@ -43,12 +42,15 @@ class RefillPhone extends refill\IRefillPhone
         $resp = http_post_data(config::REQUEST_URL, $params, $header);
         if ($resp === false) {
             return [false, '系统错误'];
-        } else {
+        }
+        else
+        {
             Log::record($resp, Log::DEBUG);
             $resp = json_decode($resp, true);
             if ($resp['ack'] == 'success') {
                 return [true, $resp['message']['order_number']];
-            } else {
+            }
+            else {
                 return [false, $resp['message']];
             }
         }
@@ -73,12 +75,15 @@ class RefillPhone extends refill\IRefillPhone
         $resp = http_post_data(config::REQUEST_URL, json_encode($params), $header);
         if ($resp === false) {
             return [false, '系统错误'];
-        } else {
+        }
+        else
+        {
             Log::record($resp, Log::DEBUG);
             $resp = json_decode($resp, true);
             if ($resp['ack'] == 'success') {
                 return [true, $resp['message']];
-            } else {
+            }
+            else {
                 return [false, $resp['message']];
             }
         }

+ 2 - 1
mobile/refill_bxtwt.php

@@ -5,6 +5,7 @@ require_once(BASE_HELPER_PATH . '/refill/RefillFactory.php');
 $content = $_SERVER['original_querystring'];
 $input = json_decode($content,true);
 
-refill\RefillFactory::instance()->notify('bxtwt',$input);
+//refill\RefillFactory::instance()->notify('bxtwt',$input);
+refill\RefillFactory::instance()->notify('beixt',$input);
 
 echo ('ok');