|
@@ -102,6 +102,12 @@ class TestRefill extends TestCase
|
|
// $ret = refill\RefillFactory::instance()->notify('beixt',$params);
|
|
// $ret = refill\RefillFactory::instance()->notify('beixt',$params);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public function testBxtwtCB()
|
|
|
|
+ {
|
|
|
|
+ $data = '{"order_number":18219726,"shipping_status":4,"shipping_status_desc":"发货失败","shipping_status_message":"","sign":"863b4d972f2a4d39a9af7396879116c4","voucher":"","vouchertype":"","voucherurl":"","tradeNo":"100662475851197741"}';
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
public function testSuhcJDVerify()
|
|
public function testSuhcJDVerify()
|
|
{
|
|
{
|
|
$data = 'onlystr=920661883198026632&sign=533151e3f0dff5f507786aabc37b18f7&amt=100¬ifyurl=https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_suhc.php&jdno&cardtype=Sinoepc&batchid=26106&cardno=1000111100020654226&orgid=1590993600&status=3';
|
|
$data = 'onlystr=920661883198026632&sign=533151e3f0dff5f507786aabc37b18f7&amt=100¬ifyurl=https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_suhc.php&jdno&cardtype=Sinoepc&batchid=26106&cardno=1000111100020654226&orgid=1590993600&status=3';
|
|
@@ -119,12 +125,9 @@ class TestRefill extends TestCase
|
|
|
|
|
|
public function testBeixtVerify()
|
|
public function testBeixtVerify()
|
|
{
|
|
{
|
|
- $data = '{"order_number":17434573,"shipping_status":4,"shipping_status_desc":"发货失败","shipping_status_message":"","sign":"3d3b92fc5e30354fc05acf6b7225f699","voucher":"501373971049867026","vouchertype":"","voucherurl":"","tradeNo":"470661991563932741"}';
|
|
|
|
- $url = "http://192.168.1.220/mobile/refill_bxtwt.php?xxx=yyy";
|
|
|
|
-// $url = "http://192.168.1.220/mobile/refill_bxtwt.php";
|
|
|
|
-// $url = "https://www.xyzshops.cn/mobile/refill_bxtwt.php";
|
|
|
|
|
|
+ $data = '{"order_number":18219726,"shipping_status":4,"shipping_status_desc":"发货失败","shipping_status_message":"","sign":"863b4d972f2a4d39a9af7396879116c4","voucher":"","vouchertype":"","voucherurl":"","tradeNo":"100662475851197741"}';
|
|
|
|
+ $url = "https://www.xyzshops.cn/mobile/refill_bxtwt.php";
|
|
|
|
|
|
-// $resp = http_post_data($url,$data,['']);
|
|
|
|
$headers = ['Content-Type: application/json'];
|
|
$headers = ['Content-Type: application/json'];
|
|
$resp = http_post_data($url,$data,$headers);
|
|
$resp = http_post_data($url,$data,$headers);
|
|
}
|
|
}
|