Pārlūkot izejas kodu

remove 10,20 price from phone

stanley-king 4 gadi atpakaļ
vecāks
revīzija
818840d266

+ 10 - 1
data/config/dev/refill.ini.php

@@ -8,7 +8,16 @@ $suhc_oil = ['name' => 'suhc','store_id' => 8,'card_type' => ['sinopec'],
         1000=> ['goods_id' => 6229,'price' => 968],
         2000=> ['goods_id' => 6230,'price' => 1976]],
     'period' => ['start' => '8:30','end' => '22:30'],'refill_type' => 'api'];
-$oil_providers = ['suhc' => $suhc_oil];
+
+$suhctm_oil = ['name' => 'suhctm','store_id' => 8,'card_type' => ['sinopec'],
+    'amount' => [100 => ['goods_id' => 6226,'price' => 96.8],
+        200 => ['goods_id' => 6227,'price' => 193.6],
+        500 => ['goods_id' => 6228,'price' => 484],
+        1000=> ['goods_id' => 6229,'price' => 968],
+        2000=> ['goods_id' => 6230,'price' => 1976]],
+    'period' => ['start' => '8:30','end' => '22:30'],'refill_type' => 'api'];
+
+$oil_providers = ['suhc' => $suhc_oil,'suhctm' => $suhctm_oil];
 $config['oil_providers'] = $oil_providers;
 
 

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

@@ -35,8 +35,9 @@ $bxtwt_phone = ['name' => 'bxtwt', 'store_id' => 10, 'card_type' => ['chinamobil
 
 
 $bjb_phone = ['name' => 'bjb', 'store_id' => 12, 'card_type' => ['chinaunicom', 'chinatelecom'],
-    'amount' => [10 => ['goods_id' => 6305, 'price' => 9.55],
-        20 => ['goods_id' => 6306, 'price' => 19.1],
+    'amount' => [
+//        10 => ['goods_id' => 6305, 'price' => 9.55],
+//        20 => ['goods_id' => 6306, 'price' => 19.1],
         30 => ['goods_id' => 6301, 'price' => 28.65],
         50 => ['goods_id' => 6302, 'price' => 47.75],
         100 => ['goods_id' => 6303, 'price' => 95.5],

+ 9 - 3
test/TestRefill.php

@@ -102,12 +102,18 @@ class TestRefill extends TestCase
 //        $ret = refill\RefillFactory::instance()->notify('beixt',$params);
     }
 
-    public function testSuhxVerify()
+    public function testSuhcJDVerify()
     {
         $data = 'onlystr=920661883198026632&sign=533151e3f0dff5f507786aabc37b18f7&amt=100&notifyurl=https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_suhc.php&jdno&cardtype=Sinoepc&batchid=26106&cardno=1000111100020654226&orgid=1590993600&status=3';
-        $url = "https://www.xyzshops.cn/mobile/refill_suhc.php?" . $data;
-//        $url = "http://192.168.1.220/mobile/refill_suhc.php?" . $data;
+        $url = "http://192.168.1.220/mobile/refill_suhc.php?" . $data;
+        $resp = http_request($url);
+    }
 
+    public function testSuhcTMVerify()
+    {
+        $data = 'onlystr=180662473867058221&sign=5ff5f95d54a89e78dbb49923f6b20c08&amt=100&notifyurl=https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_suhctm.php&cardtype=Sinoepc&batchid=3&cardno=1000111100020445281&orgid=1590993600&status=3';
+//        $url = "http://192.168.1.220/mobile/refill_suhctm.php?" . $data;
+        $url = "https://www.xyzshops.cn/mobile/refill_suhctm.php?" . $data;
         $resp = http_request($url);
     }