上线测试

mobile-first
赵鹏 6 years ago
parent 8af2029503
commit 67a980dcd3

@ -10,7 +10,7 @@
defined('BASEPATH') or exit('No direct script access allowed');
ini_set('memory_limit', '128M');
ini_set('memory_limit','256M');
class updatestation extends CI_Controller
{
@ -32,11 +32,12 @@ class updatestation extends CI_Controller
public function test(){
$results="";
for($i=1; $i<=90000; $i++){
for($i=1; $i<=2000000; $i++){
$results.='"'.$i.'"';
}
$len = strlen($results);
header("Content-Length: $len");
header("Content-Length: ".$len);
header("Content-Encoding:UTF-8");
echo $results;
}
@ -93,7 +94,8 @@ class updatestation extends CI_Controller
);
$len = strlen($NewStationList);//count( explode("@",$NewStationList))-1;
header("Content-Length: $len");
header("Content-Length: ".$len);
header("Content-Encoding:UTF-8");
echo $NewStationList;
}
@ -157,7 +159,7 @@ class updatestation extends CI_Controller
$data["StationCN"] = $arr_StationFileDetail[3];
$data["Station"] = $arr_StationFileDetail[2];
$data["Code"] = $arr_StationFileDetail[1];
$this->station_model->AddStation($data);
//$this->station_model->AddStation($data);
}
}
echo $NewStation;

@ -17,7 +17,12 @@
<button type="button" class="btn btn-success" id="trigger_ajax">开始更新(12306)</button>
</div>
</td>
<td>&nbsp;</td>
<td>&nbsp;
<p>原来准备做点击后更新,加进度条。后来发现这个功能需要自动运行,基本不需要界面。加上时间也紧。所以就直接加链接了</p>
<P>以后数据都已HT的数据为准所以先要把目前站点JS的内容判断后同步到HT里面以后根据12306数据更新HT然后把新内容邮件发送到我邮箱我在手动更新网前站点JS</P>
<p><a href="/info.php/thirdparty/updatetrain/updatestation/getstatioBy12306/">点击更新主要根据12306数据更新</a></p>
<p style="display: none;"></p>
</td>
</tr>
<tr>
<td>&nbsp;</td>

Loading…
Cancel
Save