|
@@ -47,9 +47,9 @@ class TestRefill extends TestCase
|
|
|
|
|
|
public function testRefillPhone()
|
|
|
{
|
|
|
-// global $config;
|
|
|
-// $providers = new \refill\beixts\RefillPhone($config['phone_providers']['beixts']);
|
|
|
-// $resp = $providers->add(13699279618,4,50,['order_sn' => '200649600557718886']);
|
|
|
+ global $config;
|
|
|
+ $providers = new \refill\bjb\RefillPhone($config['phone_providers']['bjb']);
|
|
|
+ $resp = $providers->add(18500608333,5,50,['order_sn' => '200229600551218886']);
|
|
|
|
|
|
//{"ack":"success","message":{"order_number":13281474,"charged_amount":"48.750","shipping_status":"5","shipping_status_desc":"未发货"}}
|
|
|
//$_POST='{"order_number":13281474,"shipping_status":1,"shipping_status_desc":"已发货","shipping_status_message":"","sign":"05863f9931ed69a70e456222f057dfdd","voucher":"110103307162012081746340295254","vouchertype":"","voucherurl":"","tradeNo":"200649600557718888"}';
|
|
@@ -62,7 +62,7 @@ class TestRefill extends TestCase
|
|
|
$params['vouchertype'] = '';
|
|
|
$params['voucherurl'] = '';
|
|
|
$params['tradeNo'] = '200649600557718887';
|
|
|
- $ret = refill\RefillFactory::instance()->notify('beixt',$params);
|
|
|
+// $ret = refill\RefillFactory::instance()->notify('beixt',$params);
|
|
|
}
|
|
|
|
|
|
public function testSuhxVerify()
|