Browse Source

testAddElectric

haru haru 2 năm trước cách đây
mục cha
commit
cd4a15b3a6
2 tập tin đã thay đổi với 6 bổ sung7 xóa
  1. 1 3
      admin/control/merchant.php
  2. 5 4
      test/TestElectric.php

+ 1 - 3
admin/control/merchant.php

@@ -11,6 +11,7 @@ require_once(BASE_HELPER_PATH . '/stat_helper.php');
 require_once(BASE_ROOT_PATH . '/helper/refill/functional.php');
 require_once(BASE_HELPER_PATH . '/task/task_helper.php');
 require_once(BASE_HELPER_PATH . '/refill/functional.php');
+require_once(BASE_CORE_PATH . '/framework/function/http.php');
 
 use refill\quality_ploy;
 
@@ -24,9 +25,6 @@ class merchantControl extends SystemControl
         Language::read('merchant');
     }
 
-    /**
-     * 机构列表
-     */
     public function merchantOp()
     {
         global $config;

+ 5 - 4
test/TestElectric.php

@@ -33,18 +33,19 @@ class TestElectric extends TestCase
             "act" => "refill",
             "op" => "add_electric",
             'order_sn' => $this->make_sn(),
-            'notifyurl' => 'https://test.xyzshops.cn' . '/mobile/innercb.php',
+            'notifyurl' => 'https://www.xyzshops.cn' . '/mobile/innercb.php',
             'cardno' => '1004638637',
-            'amount' => 50,
+            'amount' => 200,
             'company_type' => 'nation',
             'use_type' => 'home',
             'card_id' => '051818',
-            'province' => 1
+            'province' => 1,
+            'city' => '北京市'
         ];
 
         $proxy = new refill_proxy('210fe406954220f56085997d6a4c5b80');
 //        $proxy->send(BASE_SITE_URL . "/mobile/index.php",$params);
-        $proxy->send('https://test.xyzshops.cn' . "/mobile/index.php",$params);
+        $proxy->send('https://www.xyzshops.cn' . "/mobile/index.php",$params);
     }
 
     public function testNet()