|
@@ -14,6 +14,7 @@ require_once(BASE_CORE_PATH . '/framework/function/http.php');
|
|
require_once(BASE_HELPER_PATH . '/refill/RefillFactory.php');
|
|
require_once(BASE_HELPER_PATH . '/refill/RefillFactory.php');
|
|
require_once(BASE_HELPER_PATH . '/mtopcard/mtopcard.php');
|
|
require_once(BASE_HELPER_PATH . '/mtopcard/mtopcard.php');
|
|
|
|
|
|
|
|
+require_once(BASE_HELPER_PATH . '/refill/beixt/RefillPhone.php');
|
|
class TestRefill extends TestCase
|
|
class TestRefill extends TestCase
|
|
{
|
|
{
|
|
public static function setUpBeforeClass(): void
|
|
public static function setUpBeforeClass(): void
|
|
@@ -37,6 +38,14 @@ class TestRefill extends TestCase
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public function testRefillPhone()
|
|
|
|
+ {
|
|
|
|
+ $providers = new \refill\beixt\RefillPhone();
|
|
|
|
+ $resp = $providers->add(18500608333,50,'200649600557718888');
|
|
|
|
+ //{"ack":"success","message":{"order_number":13281474,"charged_amount":"48.750","shipping_status":"5","shipping_status_desc":"未发货"}}
|
|
|
|
+ // content={"order_number":13281474,"shipping_status":1,"shipping_status_desc":"已发货","shipping_status_message":"","sign":"05863f9931ed69a70e456222f057dfdd","voucher":"110103307162012081746340295254","vouchertype":"","voucherurl":"","tradeNo":"200649600557718888"}
|
|
|
|
+ }
|
|
|
|
+
|
|
public function testAddoil()
|
|
public function testAddoil()
|
|
{
|
|
{
|
|
$params = ['mchid' => 1,'cardno' => '1000111100021211884','amount' => "100","act"=>"refill","op"=>"addoil",
|
|
$params = ['mchid' => 1,'cardno' => '1000111100021211884','amount' => "100","act"=>"refill","op"=>"addoil",
|