|
@@ -54,6 +54,20 @@ class TestRefill extends TestCase
|
|
|
refill\RefillFactory::instance();
|
|
|
}
|
|
|
|
|
|
+ public function testBodian_yd()
|
|
|
+ {
|
|
|
+// $provider = $this->getProvider('bodian_yd');
|
|
|
+// $resp = $provider->balance();
|
|
|
+// $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn()]);
|
|
|
+// $resp = $provider->query(['order_sn' => '16971663724801057246']);
|
|
|
+
|
|
|
+ $body = ' {"szOrderId":"16971663724801057246","fSalePrice":"30.09","szAgentId":"200064","nFlag":"2","szVerifyString":"69c41652845d37f130186b05ddeecf6a","szPhoneNum":"15811535608","szRtnMsg":"00772022092109464443723910546991","nDemo":"30"}';
|
|
|
+ $params = json_decode($body, true);
|
|
|
+ $provider = $this->getProvider('bodian_yd', 'RefillCallBack');
|
|
|
+ $ret = $provider->verify($params);
|
|
|
+ $resp = $provider->notify($params);
|
|
|
+ }
|
|
|
+
|
|
|
public function testMerchantPrice()
|
|
|
{
|
|
|
$price = new refill\merchant_price();
|
|
@@ -2544,20 +2558,6 @@ class TestRefill extends TestCase
|
|
|
$resp = $provider->notify($params);
|
|
|
}
|
|
|
|
|
|
- public function testBodian_yd()
|
|
|
- {
|
|
|
-// $provider = $this->getProvider('bodian_yd');
|
|
|
-// $resp = $provider->balance();
|
|
|
-// $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn()]);
|
|
|
-// $resp = $provider->query(['order_sn' => '16971663724801057246']);
|
|
|
-
|
|
|
- $body = ' {"szOrderId":"16971663724801057246","fSalePrice":"30.09","szAgentId":"200064","nFlag":"2","szVerifyString":"69c41652845d37f130186b05ddeecf6a","szPhoneNum":"15811535608","szRtnMsg":"00772022092109464443723910546991","nDemo":"30"}';
|
|
|
- $params = json_decode($body, true);
|
|
|
- $provider = $this->getProvider('bodian_yd', 'RefillCallBack');
|
|
|
- $ret = $provider->verify($params);
|
|
|
- $resp = $provider->notify($params);
|
|
|
- }
|
|
|
-
|
|
|
public function testDazhanggui_fs()
|
|
|
{
|
|
|
// $provider = $this->getProvider('dazhanggui_fs');
|