|
@@ -284,6 +284,16 @@ class TestAccRefill extends TestCase
|
|
|
public function testAddoil()
|
|
|
{
|
|
|
$url = $this->mReqHost . "/racc/index.php";
|
|
|
+ for ($i = 0; $i < 10000; $i++)
|
|
|
+ {
|
|
|
+ $params = $this->make_order();
|
|
|
+ $resp = $this->send_md5($url, $params);
|
|
|
+ Log::record($resp, Log::DEBUG);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ private function make_order()
|
|
|
+ {
|
|
|
$notifyurl = 'https://www.xyzshops.cn/mobile/signature.php';
|
|
|
$params = ['mchid' => $this->mMchid,
|
|
|
'cardno' => '1000111100020445281',
|
|
@@ -293,8 +303,9 @@ class TestAccRefill extends TestCase
|
|
|
'order_sn' => $this->make_sn(),
|
|
|
'notifyurl' => $notifyurl];
|
|
|
|
|
|
- $resp = $this->send_md5($url, $params);
|
|
|
- Log::record($resp, Log::DEBUG);
|
|
|
+ return $params;
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public function testBalance()
|