mobile-first
赵鹏 6 years ago
parent 321d7fce51
commit a3147b0102

@ -30,7 +30,8 @@ class updatestation extends CI_Controller
$this->load->view('bootstrap3/footer'); $this->load->view('bootstrap3/footer');
} }
public function test(){ public function test()
{
$results = ""; $results = "";
for ($i = 1; $i <= 2000000; $i++) { for ($i = 1; $i <= 2000000; $i++) {
$results .= '"' . $i . '"'; $results .= '"' . $i . '"';
@ -83,6 +84,13 @@ class updatestation extends CI_Controller
} }
} }
$NewStationList = $UpdateStaion . $NewStation; $NewStationList = $UpdateStaion . $NewStation;
$len = strlen($NewStationList); //count( explode("@",$NewStationList))-1;
header("Content-Length: " . $len);
header("Content-Encoding:UTF-8");
echo $NewStationList;
if ($len > 0) {
//发送邮件 //发送邮件
$this->station_model->SendMail( $this->station_model->SendMail(
"UpdateStationSystem", "UpdateStationSystem",
@ -92,11 +100,7 @@ class updatestation extends CI_Controller
'New Station(by12306):' . date("Y-m-d"), 'New Station(by12306):' . date("Y-m-d"),
$NewStationList $NewStationList
); );
}
$len = strlen($NewStationList);//count( explode("@",$NewStationList))-1;
header("Content-Length: ".$len);
header("Content-Encoding:UTF-8");
echo $NewStationList;
} }
/** /**
@ -126,7 +130,6 @@ class updatestation extends CI_Controller
$isNew = false; $isNew = false;
break; break;
} }
} }
} }

Loading…
Cancel
Save