Bladeren bron

modify lifang qualitys

zb727 1 jaar geleden
bovenliggende
commit
e5b1046962

+ 17 - 17
data/config/mh/refill.ini.php

@@ -153,27 +153,27 @@ $weisanhuo_normal = ['name' => 'weisanhuo_normal', 'store_id' => 383, 'qualitys'
     'official_sn' => true, 'refill_type' => 'api'];
 
 
-$lifang_normal = ['name' => 'lifang_normal', 'store_id' => 384,'qualitys' => '1',
+$lifang_normal = ['name' => 'lifang_normal', 'store_id' => 384,'qualitys' => '2',
     'amount' => [
-        30 => [
-            ['goods_id' => 8998, 'price' => 29.4, 'quality' => 1, 'card_type' => 'chinamobile'],
-            ['goods_id' => 8998, 'price' => 29.4, 'quality' => 1, 'card_type' => 'chinaunicom'],
-            ['goods_id' => 8998, 'price' => 29.4, 'quality' => 1, 'card_type' => 'chinatelecom']
-        ],
-        50 => [
-            ['goods_id' => 8999, 'price' => 49,'quality' => 1, 'card_type' => 'chinamobile'],
-            ['goods_id' => 8999, 'price' => 49,'quality' => 1, 'card_type' => 'chinaunicom'],
-            ['goods_id' => 8999, 'price' => 49,'quality' => 1, 'card_type' => 'chinatelecom']
-        ],
+//        30 => [
+//            ['goods_id' => 8998, 'price' => 29.4, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 8998, 'price' => 29.4, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 8998, 'price' => 29.4, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ],
+//        50 => [
+//            ['goods_id' => 8999, 'price' => 49,'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 8999, 'price' => 49,'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 8999, 'price' => 49,'quality' => 1, 'card_type' => 'chinatelecom']
+//        ],
         100 => [
-            ['goods_id' => 9000, 'price' => 98, 'quality' => 1, 'card_type' => 'chinamobile'],
-            ['goods_id' => 9000, 'price' => 98, 'quality' => 1, 'card_type' => 'chinaunicom'],
-            ['goods_id' => 9000, 'price' => 98, 'quality' => 1, 'card_type' => 'chinatelecom']
+            ['goods_id' => 9000, 'price' => 100.3, 'quality' => 2, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 9000, 'price' => 98, 'quality' => 2, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 9000, 'price' => 98, 'quality' => 2, 'card_type' => 'chinatelecom']
         ],
         200 => [
-            ['goods_id' => 9001, 'price' => 196.0, 'quality' => 1, 'card_type' => 'chinamobile'],
-            ['goods_id' => 9001, 'price' => 196.0, 'quality' => 1, 'card_type' => 'chinaunicom'],
-            ['goods_id' => 9001, 'price' => 196.0, 'quality' => 1, 'card_type' => 'chinatelecom']
+            ['goods_id' => 9001, 'price' => 200.6, 'quality' => 2, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 9001, 'price' => 196.0, 'quality' => 2, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 9001, 'price' => 196.0, 'quality' => 2, 'card_type' => 'chinatelecom']
         ],
     ],
     'official_sn' => true, 'refill_type' => 'api'];

+ 9 - 9
helper/rbridge/gy/Bridge.php

@@ -106,15 +106,15 @@ class Bridge implements IBridge, IBridgeEx
             return [false, 6]; //代理商不存在
         }
 
-//        $ips = unserialize($mchinfo['ip_white_list']);
-//        if(!empty($ips))
-//        {
-//            $addr = $_SERVER['REMOTE_ADDR'];
-//            if(!in_array($addr,$ips)) {
-//                Log::record("request ip:$addr", Log::DEBUG);
-//                return [false, 12]; //未知错误
-//            }
-//        }
+        $ips = unserialize($mchinfo['ip_white_list']);
+        if(!empty($ips))
+        {
+            $addr = $_SERVER['REMOTE_ADDR'];
+            if(!in_array($addr,$ips)) {
+                Log::record("request ip:$addr", Log::DEBUG);
+                return [false, 12]; //未知错误
+            }
+        }
 
         $usekey = intval($mchinfo['use_key']);
         $key = $mchinfo['secure_key'];

+ 1 - 1
helper/refill/api/mh/weisanhuo_normal/API.MD

@@ -7,7 +7,7 @@
 - 密钥ID(secretId):9aebda54f899419a80f315b33b6ed395
 - 密钥值(secretKey):14d56f3637ba4618b50e91f444d1a029
 ### 后台地址:
-> http://124.70.69.117:50080
+> http://124.70.91.73:50080
 
 ## 店铺
 - 账号:weisanhuo

+ 4 - 4
helper/refill/api/mh/weisanhuo_normal/config.php

@@ -4,9 +4,9 @@ namespace refill\weisanhuo_normal;
 use mtopcard;
 class config
 {
-    const ORDER_URL = 'http://124.70.69.117:50050/api/v1/rest/multi/charge/single';
-    const QUERY_URL = 'http://124.70.69.117:50050/api/v1/rest/multi/charge/report/query';
-    const BALANCE_URL = 'http://124.70.69.117:50050/api/v1/rest/multi/charge/balance';
+    const ORDER_URL = 'http://124.70.91.73:50050/api/v1/rest/multi/charge/single';
+    const QUERY_URL = 'http://124.70.91.73:50050/api/v1/rest/multi/charge/report/query';
+    const BALANCE_URL = 'http://124.70.91.73:50050/api/v1/rest/multi/charge/balance';
 
     const SECRET_ID = '9aebda54f899419a80f315b33b6ed395';
     const SECRET_KEY = '14d56f3637ba4618b50e91f444d1a029';
@@ -16,7 +16,7 @@ class config
     const ProductIdS = [
         mtopcard\ChinaMobileCard =>
             [
-                30 => 'cshf1',  //测试
+                1 => 'cshf1',  //测试
                 50 => 'k-yd-50',
                 100 => 'k-yd-100',
                 200 => 'k-yd-200'

+ 1 - 0
racc/bridge/gy.php

@@ -11,6 +11,7 @@ require_once(BASE_CORE_PATH . '/framework/function/http.php');
 require_once(BASE_HELPER_PATH . '/rbridge/RBridgeFactory.php');
 
 $params = $_POST;
+Log::record("gy_message:" . json_encode($params), Log::DEBUG);
 
 if (isset($params['request_id']) and isset($params['telephone'])) {
     [$ret, $message] = rbridge\RBridgeFactory::instance()->add('gy', $params);