Переглянути джерело

Merge branch 'rtest' of 39.97.239.116:gyfl/xyzshop into rtest

xiaoyu 3 роки тому
батько
коміт
ef87a75297

+ 29 - 0
data/config/xyz/refill.ini.php

@@ -883,6 +883,35 @@ $xiaochuang_phone = ['name' => 'xiaochuang', 'store_id' => 59, 'qualitys' => '7'
     ],
     'official_sn' => true, 'refill_type' => 'api'];
 
+$zanzan_phone = ['name' => 'zanzan', 'store_id' => 60, 'qualitys' => '7',
+    'amount' => [
+        10 => [
+            ['goods_id' => 6611, 'price' => 8.9, 'quality' => 7, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']
+        ],
+        20 => [
+            ['goods_id' => 6612, 'price' => 17.8, 'quality' => 7, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']
+        ],
+        30 => [
+            ['goods_id' => 6613, 'price' => 26.7, 'quality' => 7, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']
+        ],
+        50 => [
+            ['goods_id' => 6614, 'price' => 44.5, 'quality' => 7, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']
+        ],
+        100 => [
+            ['goods_id' => 6615, 'price' => 89, 'quality' => 7, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']
+        ],
+        200 => [
+            ['goods_id' => 6616, 'price' => 178, 'quality' => 7, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']
+        ],
+        300 => [
+            ['goods_id' => 6617, 'price' => 267, 'quality' => 7, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']
+        ],
+        500 => [
+            ['goods_id' => 6618, 'price' => 445, 'quality' => 7, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']
+        ],
+    ],
+    'official_sn' => true, 'refill_type' => 'api'];
+
 $phone_providers = [
 //    ['name' => 'beixt', 'cfg' => $beixt_phone],
 //    ['name' => 'bxtwt', 'cfg' => $bxtwt_phone],

+ 4 - 3
helper/refill/api/xyz/zanzan/config.php

@@ -6,11 +6,12 @@ namespace refill\zanzan;
 
 class config
 {
-    const ORDER_URL = 'http://115.28.209.246:8081/api/charge.do';
-    const QUERY_URL = 'http://115.28.209.246:8081/api/query_chargestate.do';
+    const ORDER_URL = 'http://47.105.74.255:7066/api/charge.do';
+    const QUERY_URL = 'http://47.105.74.255:7066/api/query_chargestate.do';
 
     const USER_ID = 'd845a4635f7e47668f5e';
     const KEY = '06cfafb0c3804943a582';
-    const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_zanzan.php";
+//    const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_zanzan.php";
+    const NOTIFY_URL = "https://www.xyzshops.cn/mobile/signature.php";
     const ExtHeaders = ['Content-Type: application/json'];
 }