|
@@ -632,8 +632,8 @@ class TestRefill extends TestCase
|
|
|
|
|
|
public function testTianyan()
|
|
|
{
|
|
|
- $providers = new refill\tianyan\RefillPhone([]);
|
|
|
-// $resp = $providers->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]);
|
|
|
+ $providers = $this->getProvider('tianyan');
|
|
|
+ $resp = $providers->add(18500608333, 5, 1, ['order_sn' => $this->make_sn()]);
|
|
|
// $resp = $providers->query(['order_sn' => '71241628067981955316', 'card_no' => 18500608333, 'card_type' => 5]);
|
|
|
// $resp = $providers->balance();
|
|
|
$params['amount'] = '100.00';
|
|
@@ -649,7 +649,7 @@ class TestRefill extends TestCase
|
|
|
$params['ticketNo'] = '110103353022108050819140250945';
|
|
|
$params['company'] = 'lt';
|
|
|
$params['status'] = '2';
|
|
|
- refill\RefillFactory::instance()->notify('tianyan', $params);
|
|
|
+// refill\RefillFactory::instance()->notify('tianyan', $params);
|
|
|
}
|
|
|
|
|
|
public function testYunsuoyaoman()
|
|
@@ -772,21 +772,21 @@ class TestRefill extends TestCase
|
|
|
|
|
|
public function testWangliantx()
|
|
|
{
|
|
|
-// $providers = $this->getProvider('wangliantx');
|
|
|
-// $resp = $providers->balance();
|
|
|
+ $providers = $this->getProvider('wangliantx');
|
|
|
+ $resp = $providers->balance();
|
|
|
// for ($i = 1; $i<=1; $i++){
|
|
|
// $resp = $providers->add(18074608795, 6, 50, [
|
|
|
// 'order_sn' => $this->make_sn(),
|
|
|
// 'regin_no' => 1
|
|
|
// ]);
|
|
|
// }
|
|
|
-// $resp = $providers->query(['order_sn' => '85901629801033376170']);
|
|
|
+// $resp = $providers->query(['order_sn' => '5064760687879181122498']);
|
|
|
|
|
|
- $body = '{"userid":"10073664","sporderid":"85901629801033376170","orderid":"C5C5D4F49DB61A8773664","resultno":"1","merchantsubmittime":"20210824183109","ordermoney":"47.6","verifystring":"b6a873ecd6dc9cea3a410c6386cdab84","sign":"4a80e2a8c7b07c8aacada4feedd581bd","supnumber":"1000000083421082418345386156"}';
|
|
|
- $params = json_decode($body, true);
|
|
|
- $providers = $this->getProvider('wangliantx', 'RefillCallBack');
|
|
|
- $ret = $providers->verify($params);
|
|
|
- $resp = $providers->notify($params);
|
|
|
+// $body = '{"userid":"10073664","sporderid":"85901629801033376170","orderid":"C5C5D4F49DB61A8773664","resultno":"1","merchantsubmittime":"20210824183109","ordermoney":"47.6","verifystring":"b6a873ecd6dc9cea3a410c6386cdab84","sign":"4a80e2a8c7b07c8aacada4feedd581bd","supnumber":"1000000083421082418345386156"}';
|
|
|
+// $params = json_decode($body, true);
|
|
|
+// $providers = $this->getProvider('wangliantx', 'RefillCallBack');
|
|
|
+// $ret = $providers->verify($params);
|
|
|
+// $resp = $providers->notify($params);
|
|
|
}
|
|
|
|
|
|
public function testZhuojian()
|