hdel('', '', ''); $x = 'a:2:{i:0;s:14:"222.129.49.232";i:1;s:14:"222.129.55.246";}'; $x = unserialize($x); $x[] = ''; } public function testRefillAdd() { $time = time() * 10; for ($i = 0;$i < 2; $i++) { $this->push_order(1092, $time, $i); } } private function push_order($mchid,$time,$index) { $notify_url = "https://test.xyzshops.cn/mobile/callback/bridge_test.php"; $params = [ 'mchid' => $mchid, 'amount' => 30, 'order_sn' => "{$time}" . sprintf("%'010d",$index), 'cardno' => '13911129867', "act" => "refill", "op" => "add", 'notifyurl' => $notify_url ]; $proxy = new refill_proxy("210fe406954220f56085997d6a4c5b80"); $resp = $proxy->send("https://test.xyzshops.cn/mobile/index.php", $params); } }