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

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

@@ -38,7 +38,7 @@ class RefillCallBack implements refill\IRefillCallBack
         }
         $order_id = $order_info['order_id'];
 
-        if ($status === 2) {
+        if (in_array($status, [2,3])) {
             $data['official_sn'] = strtolower($params['spsno']) == 'null' ? '' : $params['spsno'];
             Model('refill_order')->edit($order_id, $data);
             return [$order_id, true, false, true];

+ 1 - 1
helper/refill/api/xyz/yuanmai/RefillPhone.php

@@ -74,7 +74,7 @@ class RefillPhone extends refill\IRefillPhone
                 return [false, '网络错误'];
             }
             $resultno = intval($resp['resultno']);
-            if ($resultno === 2) {
+            if (in_array($resultno, [2,3])) {
                 $order_state = ORDER_STATE_SUCCESS;
                 $updata['official_sn'] = $resp['spsno'];
                 Model('refill_order')->edit($refill_info['order_id'], $updata);

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

@@ -11,7 +11,8 @@ class config
     const QUERY_URL= 'http://121.89.243.74:9086/searchpay.do';
     const USER_ID= '10002504';
     const KEY = 'HdxxWScBF6aYykbB33r8S5CQcS5myYZZ';
-    const NOTIFY_URL = BASE_SITE_URL . "/mobile/refill_yuanmai.php";
+//    const NOTIFY_URL = BASE_SITE_URL . "/mobile/refill_yuanmai.php";
+    const NOTIFY_URL = "https://www.xyzshops.cn/mobile/signature.php";
     const operator = [
         mtopcard\ChinaMobileCard  => 1,
         mtopcard\ChinaUnicomCard  => 0,