fixed callbytxt errors when getting qso info
这个提交包含在:
父节点
6b82538eb1
当前提交
b1017b7b3c
共有 4 个文件被更改,包括 7 次插入 和 10 次删除
|
|
@ -16,7 +16,7 @@ $config['app_name'] = "Cloudlog";
|
||||||
$config['app_version'] = "0.1";
|
$config['app_version'] = "0.1";
|
||||||
$config['directory'] = "logbook";
|
$config['directory'] = "logbook";
|
||||||
|
|
||||||
$config['callbook'] = "qrz"; // Options are qrz or callbytxt
|
$config['callbook'] = "callbytxt"; // Options are qrz or callbytxt
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ class Logbook extends CI_Controller {
|
||||||
// Lookup using Callbytxt
|
// Lookup using Callbytxt
|
||||||
$this->load->library('callbytxt');
|
$this->load->library('callbytxt');
|
||||||
|
|
||||||
$callbook = $this->callbytxt->callsign($qra);
|
$callbook = $this->callbytxt->callsign($callsign);
|
||||||
|
|
||||||
echo $callbook['city'];
|
echo $callbook['city'];
|
||||||
}
|
}
|
||||||
|
|
@ -200,7 +200,7 @@ class Logbook extends CI_Controller {
|
||||||
// Lookup using Callbytxt
|
// Lookup using Callbytxt
|
||||||
$this->load->library('callbytxt');
|
$this->load->library('callbytxt');
|
||||||
|
|
||||||
$callbook = $this->callbytxt->callsign($qra);
|
$callbook = $this->callbytxt->callsign($callsign);
|
||||||
|
|
||||||
echo $callbook['name'];
|
echo $callbook['name'];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,13 +5,11 @@ class Welcome extends CI_Controller {
|
||||||
|
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$this->load->library('qrz');
|
$this->load->library('callbytxt');
|
||||||
|
|
||||||
$qrz_session_key = $this->qrz->set_session($this->config->item('qrz_username'), $this->config->item('qrz_password'));
|
|
||||||
|
|
||||||
echo $this->session->userdata('qrz_session_key');
|
$callbook = $this->callbytxt->callsign('m3php');
|
||||||
|
|
||||||
$data['callsign'] = $this->qrz->search("m3php", $this->session->userdata('qrz_session_key'));
|
print_r($callbook);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,6 @@ class Qrz {
|
||||||
$data['long'] = (string) $xml->Callsign->lon;
|
$data['long'] = (string) $xml->Callsign->lon;
|
||||||
$data['iota'] = (string) $xml->Callsign->iota;
|
$data['iota'] = (string) $xml->Callsign->iota;
|
||||||
|
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用