|
@@ -221,6 +221,7 @@ class TestRefillYl extends TestCase
|
|
|
$ret = $provider->verify($params);
|
|
|
$resp = $provider->notify($params);
|
|
|
}
|
|
|
+
|
|
|
public function testWangliantx()
|
|
|
{
|
|
|
// $provider = $this->getProvider('wangliantx');
|
|
@@ -235,4 +236,17 @@ class TestRefillYl extends TestCase
|
|
|
$resp = $provider->notify($params);
|
|
|
}
|
|
|
|
|
|
+ public function testXianghongrui()
|
|
|
+ {
|
|
|
+// $provider = $this->getProvider('xianghongrui');
|
|
|
+// $resp = $provider->balance();
|
|
|
+// $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
|
|
|
+// $resp = $provider->query(['order_sn' => '87461648535891960493']);
|
|
|
+
|
|
|
+ $body = '{"orderid":"JTH22032914388095709","sporderid":"87461648535891960493","userid":"10002703","merchantsubmittime":"20220329143837","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.5","sign":"A2F64CAE7B37AE11D4F95468BC836EC0"}';
|
|
|
+ $params = json_decode($body, true);
|
|
|
+ $provider = $this->getProvider('xianghongrui', 'RefillCallBack');
|
|
|
+ $ret = $provider->verify($params);
|
|
|
+ $resp = $provider->notify($params);
|
|
|
+ }
|
|
|
}
|