stanley-king 1 年之前
父节点
当前提交
dfcbcc1e5c
共有 2 个文件被更改,包括 5 次插入8 次删除
  1. 4 7
      helper/rbridge/gy/Bridge.php
  2. 1 1
      racc/config/config.ini.php

+ 4 - 7
helper/rbridge/gy/Bridge.php

@@ -178,16 +178,13 @@ class Bridge implements IBridge, IBridgeEx
             $order_state = ORDER_STATE_NOEXIST;
         }
 
-        if(in_array($order_state,[ORDER_STATE_QUEUE,ORDER_STATE_NEW,ORDER_STATE_PAY,ORDER_STATE_SEND])) {
+        if (in_array($order_state, [ORDER_STATE_QUEUE, ORDER_STATE_NEW, ORDER_STATE_PAY, ORDER_STATE_SEND])) {
             $info['result'] = 2;
-        }
-        elseif($order_state == ORDER_STATE_SUCCESS) {
+        } elseif ($order_state == ORDER_STATE_SUCCESS) {
             $info['result'] = 0;
-        }
-        elseif($order_state == ORDER_STATE_CANCEL) {
+        } elseif ($order_state == ORDER_STATE_CANCEL) {
             $info['result'] = 1;
-        }
-        else {
+        } else {
             $info['result'] = 3;
         }
 

+ 1 - 1
racc/config/config.ini.php

@@ -1,4 +1,4 @@
 <?php
 defined('InShopNC') or exit('Access Invalid!');
 
-$config['access_include_dirs'] = ['/callback/lingzh','/callback/mh'];
+$config['access_include_dirs'] = ['/callback/lingzh', '/callback/mh', '/bridge'];