|
@@ -107,10 +107,10 @@ class TestRefill extends TestCase
|
|
|
$resp = $providers->add(15120035568, 5, 50, ['order_sn' => $this->make_sn()]);
|
|
|
}
|
|
|
|
|
|
- public function testSuhcOil()
|
|
|
+ public function testTianjtOil()
|
|
|
{
|
|
|
$cardno = 1000111100021211884;
|
|
|
- $providers = new refill\suhc\RefillOil([]);
|
|
|
+ $providers = new refill\tianjt\RefillOil([]);
|
|
|
$resp = $providers->add($cardno, 2, 500, ['order_sn' => $this->make_sn()]);
|
|
|
}
|
|
|
|
|
@@ -153,9 +153,9 @@ class TestRefill extends TestCase
|
|
|
$resp = $providers->query($refill_info);
|
|
|
}
|
|
|
|
|
|
- public function testSuhcQuery()
|
|
|
+ public function testTianjtQuery()
|
|
|
{
|
|
|
- $providers = new refill\suhc\RefillOil([]);
|
|
|
+ $providers = new refill\tianjt\RefillOil([]);
|
|
|
$refill_info = ['order_sn' => 680665862267622221, 'ch_trade_no' => 499, 'card_no' => 1000111200005252927];
|
|
|
$resp = $providers->query($refill_info);
|
|
|
}
|
|
@@ -198,10 +198,10 @@ class TestRefill extends TestCase
|
|
|
|
|
|
}
|
|
|
|
|
|
- public function testSuhcJDVerify()
|
|
|
+ public function testTianjtJDVerify()
|
|
|
{
|
|
|
- $data = 'onlystr=920661883198026632&sign=533151e3f0dff5f507786aabc37b18f7&amt=100¬ifyurl=https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_suhc.php&jdno&cardtype=Sinoepc&batchid=26106&cardno=1000111100020654226&orgid=1590993600&status=3';
|
|
|
- $url = "http://192.168.1.220/mobile/refill_suhc.php?" . $data;
|
|
|
+ $data = 'onlystr=920661883198026632&sign=533151e3f0dff5f507786aabc37b18f7&amt=100¬ifyurl=https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_tianjt.php&jdno&cardtype=Sinoepc&batchid=26106&cardno=1000111100020654226&orgid=1590993600&status=3';
|
|
|
+ $url = "http://192.168.1.220/mobile/refill_tianjt.php?" . $data;
|
|
|
$resp = http_request($url);
|
|
|
}
|
|
|
|
|
@@ -366,11 +366,11 @@ class TestRefill extends TestCase
|
|
|
}
|
|
|
|
|
|
|
|
|
- public function testSuhcCB()
|
|
|
+ public function testTianjtCB()
|
|
|
{
|
|
|
-// $notifyurl = BASE_SITE_URL . "/mobile/refill_suhc.php";
|
|
|
- $notifyurl = "https://www.xyzshops.cn/mobile/refill_suhc.php";
|
|
|
-// $notifyurl = "https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_suhc.php";
|
|
|
+// $notifyurl = BASE_SITE_URL . "/mobile/refill_tianjt.php";
|
|
|
+ $notifyurl = "https://www.xyzshops.cn/mobile/refill_tianjt.php";
|
|
|
+// $notifyurl = "https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_tianjt.php";
|
|
|
|
|
|
$params = ['onlystr' => '690665858589475818',
|
|
|
'amt' => 1000,
|