|
@@ -613,16 +613,16 @@ class TestRefill extends TestCase
|
|
|
|
|
|
public function testXinhengyang()
|
|
|
{
|
|
|
-// $provider = $this->getProvider('xinhengyang');
|
|
|
+ $provider = $this->getProvider('xinhengyang');
|
|
|
// $resp = $provider->balance();
|
|
|
// $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
|
|
|
-// $resp = $provider->query(['ch_trade_no' => 'f619063cc8f443e1a3ee1cc5fe868817']);
|
|
|
+ $resp = $provider->query(['order_sn' => '6966570691155594416360']);
|
|
|
|
|
|
- $body = '{"reqNo":"f619063cc8f443e1a3ee1cc5fe868817","userReqNo":"12621636363677759274","evidence":"","sign":"fc184436350396baf252ff56aee6f5ce","billDiscount":"0.953","billAmount":"28.59","status":"50100","message":"fail"}';
|
|
|
- $params = json_decode($body, true);
|
|
|
- $provider = $this->getProvider('xinhengyang', 'RefillCallBack');
|
|
|
- $ret = $provider->verify($params);
|
|
|
- $resp = $provider->notify($params);
|
|
|
+// $body = '{"reqNo":"f619063cc8f443e1a3ee1cc5fe868817","userReqNo":"12621636363677759274","evidence":"","sign":"fc184436350396baf252ff56aee6f5ce","billDiscount":"0.953","billAmount":"28.59","status":"50100","message":"fail"}';
|
|
|
+// $params = json_decode($body, true);
|
|
|
+// $provider = $this->getProvider('xinhengyang', 'RefillCallBack');
|
|
|
+// $ret = $provider->verify($params);
|
|
|
+// $resp = $provider->notify($params);
|
|
|
}
|
|
|
|
|
|
public function testMiaoxt()
|
|
@@ -2464,12 +2464,12 @@ class TestRefill extends TestCase
|
|
|
{
|
|
|
$params['act'] = 'refill';
|
|
|
$params['op'] = 'add';
|
|
|
- $params['mchid'] = 10221;
|
|
|
- $params['cardno'] = '17610802062';
|
|
|
- $params['amount'] = 30;
|
|
|
- $params['order_sn'] = '20210926154819606056656';
|
|
|
- $params['notifyurl'] = 'http://117.186.248.196:88/Asyn/notifyCall/367EA7';
|
|
|
- $sign = $this->md5_sign($params,'E019D21A1E6611ECA4FD00163E179561');
|
|
|
+ $params['mchid'] = '10198';
|
|
|
+ $params['cardno'] = '18696902060';
|
|
|
+ $params['amount'] = '30';
|
|
|
+ $params['order_sn'] = '163782007236900000878';
|
|
|
+ $params['notifyurl'] = 'http://open.apiwater.xyz:20801/';
|
|
|
+ $sign = $this->md5_sign($params,'b9b30f57eac34a398a7534021fa23a16');
|
|
|
}
|
|
|
|
|
|
private function md5_sign($params,$key = '')
|