|
@@ -3251,17 +3251,16 @@ class TestRefill extends TestCase
|
|
|
|
|
|
public function testYongjia()
|
|
public function testYongjia()
|
|
{
|
|
{
|
|
-// $provider = $this->getProvider('yongjia','RefillOil');
|
|
|
|
|
|
+// $provider = $this->getProvider('yongjia');
|
|
// $resp = $provider->balance();
|
|
// $resp = $provider->balance();
|
|
-// $resp = $provider->add(18074608795, 6, 200, ['order_sn' => $this->make_sn()]);
|
|
|
|
-// $resp = $provider->query(['order_sn' => '67461681184143372378']);
|
|
|
|
|
|
+// $resp = $provider->add(18074608795, 6, 200, ['order_sn' => $this->make_sn(), 'province' => 1, 'product_code' => 'XYZ100777', 'goods_id' => 6978]);
|
|
|
|
+// $resp = $provider->query(['order_sn' => '86061683172050676749']);
|
|
|
|
|
|
- $body = '{"number":"18074608795","mchid":"1","orderid":"67461681184143372378","price":"200.0","voucher":"","sign":"b9c011c70734707b88351ec5efd96d98","oid":134,"status":"3"}';
|
|
|
|
|
|
+ $body = '{"number":"18074608795","mchid":"1","orderid":"86061683172050676749","price":"100.0","voucher":"","sign":"3d62a44c8f49a158e3cb8d58518bc193","oid":162,"status":"3"}';
|
|
$params = json_decode($body, true);
|
|
$params = json_decode($body, true);
|
|
$provider = $this->getProvider('yongjia', 'RefillCallback');
|
|
$provider = $this->getProvider('yongjia', 'RefillCallback');
|
|
$ret = $provider->verify($params);
|
|
$ret = $provider->verify($params);
|
|
$resp = $provider->notify($params);
|
|
$resp = $provider->notify($params);
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
public function testHuiyuan()
|
|
public function testHuiyuan()
|