Added "Call already worked" to internal API
这个提交包含在:
父节点
a2304a8fe5
当前提交
a5c6a5ce9d
共有 1 个文件被更改,包括 14 次插入 和 10 次删除
|
|
@ -3997,6 +3997,8 @@ class Logbook_model extends CI_Model {
|
||||||
$CI =& get_instance();
|
$CI =& get_instance();
|
||||||
if ( ($this->optionslib->get_option('dxcache_url') != '') ) {
|
if ( ($this->optionslib->get_option('dxcache_url') != '') ) {
|
||||||
$dxcache_url = $this->optionslib->get_option('dxcache_url').'/spots/';
|
$dxcache_url = $this->optionslib->get_option('dxcache_url').'/spots/';
|
||||||
|
$CI->load->model('logbooks_model');
|
||||||
|
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
|
||||||
|
|
||||||
// CURL Functions
|
// CURL Functions
|
||||||
$ch = curl_init();
|
$ch = curl_init();
|
||||||
|
|
@ -4027,9 +4029,11 @@ class Logbook_model extends CI_Model {
|
||||||
$singlespot->dxcc_spotter=$dxcc;
|
$singlespot->dxcc_spotter=$dxcc;
|
||||||
if ($de != '') {
|
if ($de != '') {
|
||||||
if ($de == $dxcc['cont']) {
|
if ($de == $dxcc['cont']) {
|
||||||
|
$singlespot->worked_call = ($this->check_if_callsign_worked_in_logbook($singlespot->spotted, $logbooks_locations_array, $singlespot->band) == 1);
|
||||||
array_push($spotsout,$singlespot);
|
array_push($spotsout,$singlespot);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
$singlespot->worked_call = ($this->check_if_callsign_worked_in_logbook($singlespot->spotted, $logbooks_locations_array, $singlespot->band) == 1);
|
||||||
array_push($spotsout,$singlespot);
|
array_push($spotsout,$singlespot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用