|
@@ -65,6 +65,39 @@ class TestRefill extends TestCase
|
|
|
$ret = refill\RefillFactory::instance()->notify('beixt',$params);
|
|
|
}
|
|
|
|
|
|
+ public function testSuhxVerify()
|
|
|
+ {
|
|
|
+ $data = 'onlystr=190661874318128632&sign=9eb60765c356341fd41c9bec6526f46a&amt=1000¬ifyurl=https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_suhc.php&jdno&cardtype=Sinoepc&batchid=25940&cardno=1000111100012304048&orgid=1590993600&status=2';
|
|
|
+ $url = "http://192.168.1.220/mobile/refill_suhc.php?" . $data;
|
|
|
+
|
|
|
+ $resp = http_request($url);
|
|
|
+ }
|
|
|
+
|
|
|
+ public function testUrl()
|
|
|
+ {
|
|
|
+ $data = 'onlystr=190661874318128632&sign=9eb60765c356341fd41c9bec6526f46a&amt=1000¬ifyurl=https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_suhc.php&jdno&cardtype=Sinoepc&batchid=25940&cardno=1000111100012304048&orgid=1590993600&status=2';
|
|
|
+
|
|
|
+ $params = preg_split('/&/', $data);
|
|
|
+ foreach ($params as $pair)
|
|
|
+ {
|
|
|
+ $kv = explode('=', $pair);
|
|
|
+ $count = count($kv);
|
|
|
+ if($count === 1) {
|
|
|
+ $key = $kv[0];
|
|
|
+ $val = "";
|
|
|
+ }
|
|
|
+ elseif($count === 2) {
|
|
|
+ $key = $kv[0];
|
|
|
+ $val = $kv[1];
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
+ Log::record("{$key}:{$val}",Log::DEBUG);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public function testAddoil()
|
|
|
{
|
|
|
$url = $this->mReqHost . "/mobile/index.php";
|