[LoTW] Removed test code and added comments
这个提交包含在:
父节点
93c53c1e1e
当前提交
e20f1c58ca
共有 1 个文件被更改,包括 20 次插入 和 11 次删除
|
|
@ -413,7 +413,17 @@ class Lotw extends CI_Controller {
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Function: loadFromFile
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| $filepath is the ADIF file, $display_view is used to hide the output if its internal script
|
||||||
|
|
|
||||||
|
| Internal function that takes the LoTW ADIF and imports into the log
|
||||||
|
|
|
||||||
|
*/
|
||||||
private function loadFromFile($filepath, $display_view = "TRUE")
|
private function loadFromFile($filepath, $display_view = "TRUE")
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
@ -527,6 +537,15 @@ class Lotw extends CI_Controller {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Function: lotw_download
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Collects users with LoTW usernames and passwords and runs through them
|
||||||
|
| downloading matching QSOs.
|
||||||
|
|
|
||||||
|
*/
|
||||||
function lotw_download() {
|
function lotw_download() {
|
||||||
$this->load->model('user_model');
|
$this->load->model('user_model');
|
||||||
$this->load->model('logbook_model');
|
$this->load->model('logbook_model');
|
||||||
|
|
@ -854,16 +873,6 @@ class Lotw extends CI_Controller {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function sat() {
|
|
||||||
$satellite_name_check = $this->lotw_satellite_map('ISS');
|
|
||||||
|
|
||||||
if($satellite_name_check != FALSE) {
|
|
||||||
echo $satellite_name_check;
|
|
||||||
} else {
|
|
||||||
echo "no match";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
| Function: lotw_satellite_map
|
| Function: lotw_satellite_map
|
||||||
| Requires: OSCAR Satellite name $satname
|
| Requires: OSCAR Satellite name $satname
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用