|
@@ -277,4 +277,20 @@ class TestRefillThird extends TestCase
|
|
|
['order_sn' => $order_sn, 'goods_id' => 6619,
|
|
|
'quantity' => 5, 'product_code' => 'XYZ100745', 'third_card_type' => 1]);
|
|
|
}
|
|
|
+
|
|
|
+ public function testSendMobile()
|
|
|
+ {
|
|
|
+ $phone = '13911129867';
|
|
|
+ $amount = 30;
|
|
|
+ $url = "https://www.xyzshops.cn" . "/mobile/index.php";
|
|
|
+ $params = ['mchid' => 1092,
|
|
|
+ 'cardno' => $phone,
|
|
|
+ 'amount' => $amount,
|
|
|
+ "act" => "refill",
|
|
|
+ "op" => "add",
|
|
|
+ 'order_sn' => $this->make_sn(),
|
|
|
+ 'notifyurl' => "https://www.xyzshops.cn/signature.php"];
|
|
|
+ $proxy = new refill_proxy("210fe406954220f56085997d6a4c5b80");
|
|
|
+ $resp = $proxy->send($url, $params);
|
|
|
+ }
|
|
|
}
|