|
@@ -277,7 +277,8 @@ class TestRefill extends TestCase
|
|
|
public function testFeinimoshu_hf()
|
|
|
{
|
|
|
$providers = new refill\feinimoshu_hf\RefillPhone([]);
|
|
|
- $resp = $providers->query(['order_sn' => '3708210680873565742704']);
|
|
|
+// $resp = $providers->query(['order_sn' => '3708210680873565742704']);
|
|
|
+ $resp = $providers->balance();
|
|
|
}
|
|
|
|
|
|
public function testFeiniaoPhone()
|
|
@@ -381,10 +382,11 @@ class TestRefill extends TestCase
|
|
|
{
|
|
|
$providers = new refill\moxj_fs\RefillPhone([]);
|
|
|
// $resp = $providers->add(15139608757, 4, 100, ['order_sn' => $this->make_sn()]);
|
|
|
- $resp = $providers->query(['order_sn' => '42741624242693157165']);
|
|
|
- $data = '{"amount":"100","charge_type":"2","code":"1","partner_id":"58","phone":"15139608757","sign":"30d193dba4101e50851ed0efabb75fb1","partner_order_no":"42741624242693157165","official_order_id":"20210621103211948830"}';
|
|
|
- $params = json_decode($data , true);
|
|
|
+// $resp = $providers->query(['order_sn' => '42741624242693157165']);
|
|
|
+// $data = '{"amount":"100","charge_type":"2","code":"1","partner_id":"58","phone":"15139608757","sign":"30d193dba4101e50851ed0efabb75fb1","partner_order_no":"42741624242693157165","official_order_id":"20210621103211948830"}';
|
|
|
+// $params = json_decode($data , true);
|
|
|
// refill\RefillFactory::instance()->notify('moxj_fs',$params);
|
|
|
+ $resp = $providers->balance();
|
|
|
}
|
|
|
|
|
|
public function testZanzanquickPhone()
|
|
@@ -410,11 +412,12 @@ class TestRefill extends TestCase
|
|
|
public function testMoxj_ydPhone()
|
|
|
{
|
|
|
$providers = new refill\moxj_yd\RefillPhone([]);
|
|
|
- $resp = $providers->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]);
|
|
|
+// $resp = $providers->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]);
|
|
|
// $resp = $providers->query(['order_sn' => '52101624413125875436']);
|
|
|
- $data = '{"customer_order_no":"47651624412877257722","status":1,"merchant_id":"76505818","sign":"c185a0f2152b3ac3ee3f29009dec5a6b"}';
|
|
|
- $params = json_decode($data , true);
|
|
|
+// $data = '{"customer_order_no":"47651624412877257722","status":1,"merchant_id":"76505818","sign":"c185a0f2152b3ac3ee3f29009dec5a6b"}';
|
|
|
+// $params = json_decode($data , true);
|
|
|
// refill\RefillFactory::instance()->notify('moxj_yd',$params);
|
|
|
+ $resp = $providers->balance();
|
|
|
}
|
|
|
|
|
|
public function testXingzyPhone()
|
|
@@ -461,10 +464,11 @@ class TestRefill extends TestCase
|
|
|
{
|
|
|
$providers = new refill\lingzhman\RefillPhone([]);
|
|
|
// $resp = $providers->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
|
|
|
- $resp = $providers->query(['order_sn' => '29771625215707976538']);
|
|
|
- $data = '{"orderNo":"F2107021536431562574","status":"019","consumerNo":"60191625211393862930","voucherNo":null,"mobile":"18500608333"}';
|
|
|
- $params = json_decode($data, true);
|
|
|
+// $resp = $providers->query(['order_sn' => '29771625215707976538']);
|
|
|
+// $data = '{"orderNo":"F2107021536431562574","status":"019","consumerNo":"60191625211393862930","voucherNo":null,"mobile":"18500608333"}';
|
|
|
+// $params = json_decode($data, true);
|
|
|
// refill\RefillFactory::instance()->notify('lingzhman',$params);
|
|
|
+ $resp = $providers->balance();
|
|
|
}
|
|
|
|
|
|
public function testQijutangPhone()
|
|
@@ -495,9 +499,10 @@ class TestRefill extends TestCase
|
|
|
$providers = new refill\cangbu\RefillPhone([]);
|
|
|
// $resp = $providers->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]);
|
|
|
// $resp = $providers->query(['order_sn' => '35041626071052333060']);
|
|
|
- $data = '{"customerId":"112","tmporder":"35041626071052333060","orderno":"s16260710607417944801112","number":"18500608333","money":"100","amount":"94.9000","code":"1","cardno":"","voucher":"110103307042107121424210550266","sign":"de463c3d389a4afe4a2c58257972121a"}';
|
|
|
- $params = json_decode($data, true);
|
|
|
- refill\RefillFactory::instance()->notify('cangbu',$params);
|
|
|
+// $data = '{"customerId":"112","tmporder":"35041626071052333060","orderno":"s16260710607417944801112","number":"18500608333","money":"100","amount":"94.9000","code":"1","cardno":"","voucher":"110103307042107121424210550266","sign":"de463c3d389a4afe4a2c58257972121a"}';
|
|
|
+// $params = json_decode($data, true);
|
|
|
+// refill\RefillFactory::instance()->notify('cangbu',$params);
|
|
|
+ $resp = $providers->query_balance();
|
|
|
}
|
|
|
|
|
|
public function testCangbukami()
|
|
@@ -544,9 +549,10 @@ class TestRefill extends TestCase
|
|
|
$providers = new refill\moxj_new\RefillPhone([]);
|
|
|
// $resp = $providers->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
|
|
|
// $resp = $providers->query(['order_sn' => '33301627887529587739', 'card_no' => 13699279618]);
|
|
|
- $body = '{"code":"2101","official_order_no":"0","partner_no":"300459017","partner_order_no":"33301627887529587739","phone":"18500608333","amount":"30","isp":"cucc","charge_time":"0","sign":"A512D612C823DFBCA9B4BC42134CC164"}';
|
|
|
- $params = json_decode($body, true);
|
|
|
- refill\RefillFactory::instance()->notify('moxj_new', $params);
|
|
|
+// $body = '{"code":"2101","official_order_no":"0","partner_no":"300459017","partner_order_no":"33301627887529587739","phone":"18500608333","amount":"30","isp":"cucc","charge_time":"0","sign":"A512D612C823DFBCA9B4BC42134CC164"}';
|
|
|
+// $params = json_decode($body, true);
|
|
|
+// refill\RefillFactory::instance()->notify('moxj_new', $params);
|
|
|
+ $resp = $providers->balance();
|
|
|
}
|
|
|
|
|
|
public function testKangkai()
|
|
@@ -554,9 +560,10 @@ class TestRefill extends TestCase
|
|
|
$providers = new refill\kangkai\RefillPhone([]);
|
|
|
// $resp = $providers->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
|
|
|
// $resp = $providers->query(['order_sn' => '25431627898461762024']);
|
|
|
- $body = '{"TaskID":"267459","Mobile":"18500608333","Status":"5","ReportTime":"2021-08-02T18:02:01.777","ReportCode":"7:","OutTradeNo":"25431627898461762024","Price":"44.2500","ReceiptNum":"","Sign":"f0934a621fd0b076373f77a9bf8d7051"}';
|
|
|
- $params = json_decode($body, true);
|
|
|
- refill\RefillFactory::instance()->notify('kangkai', $params);
|
|
|
+// $body = '{"TaskID":"267459","Mobile":"18500608333","Status":"5","ReportTime":"2021-08-02T18:02:01.777","ReportCode":"7:","OutTradeNo":"25431627898461762024","Price":"44.2500","ReceiptNum":"","Sign":"f0934a621fd0b076373f77a9bf8d7051"}';
|
|
|
+// $params = json_decode($body, true);
|
|
|
+// refill\RefillFactory::instance()->notify('kangkai', $params);
|
|
|
+ $resp = $providers->balance();
|
|
|
}
|
|
|
|
|
|
public function testLechong()
|
|
@@ -564,9 +571,10 @@ class TestRefill extends TestCase
|
|
|
$providers = new refill\lechong\RefillPhone([]);
|
|
|
// $resp = $providers->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
|
|
|
// $resp = $providers->query(['order_sn' => '55641627902450221838']);
|
|
|
- $body = '{"sellerid":"55641627902450221838","agentcode":"202108021753","account":"MTg1MDA2MDgzMzM=","value":"50","payvalue":"47.8500","voucher":"","createtime":"20210802190739","endtime":"20210802191008","state":"4","remark":"","time":"20210802191008","sign":"0e2d69318d03871d887debd498cc50f2"}';
|
|
|
- $params = json_decode($body, true);
|
|
|
- refill\RefillFactory::instance()->notify('lechong', $params);
|
|
|
+// $body = '{"sellerid":"55641627902450221838","agentcode":"202108021753","account":"MTg1MDA2MDgzMzM=","value":"50","payvalue":"47.8500","voucher":"","createtime":"20210802190739","endtime":"20210802191008","state":"4","remark":"","time":"20210802191008","sign":"0e2d69318d03871d887debd498cc50f2"}';
|
|
|
+// $params = json_decode($body, true);
|
|
|
+// refill\RefillFactory::instance()->notify('lechong', $params);
|
|
|
+ $resp = $providers->balance();
|
|
|
}
|
|
|
|
|
|
public function testAmingjd()
|