stanley-king 4 rokov pred
rodič
commit
7079fd6e2f

+ 2 - 0
data/config/prod/refill.ini.php

@@ -1,5 +1,7 @@
 <?php
 
+define('REFILL_COMAPNY','xyzshops');
+
 //充值额度基本表
 $config['refill_specs'] = [
     'petrochina'    => [100 , 200 , 500 , 1000 , 2000],

+ 6 - 1
helper/refill/RefillFactory.php

@@ -16,9 +16,14 @@ require_once(BASE_HELPER_PATH . '/refill/CalcMerchantPrice.php');
 require_once(BASE_HELPER_PATH . '/refill/util.php');
 
 
+
+
+if(REFILL_COMAPNY == 'xyzshops') {
+    define('BASE_HELPER_RAPI_PATH',BASE_HELPER_PATH . '/refill/api/xyz');
+}
+
 require_once(BASE_HELPER_PATH . '/refill/yzchannel.php');
 
-define('BASE_HELPER_RAPI_PATH',BASE_HELPER_PATH . '/refill/api/xyz');
 
 use Log;
 use mtopcard;