This code works locally but not on production
这个提交包含在:
父节点
c8a3c8f302
当前提交
fd9b4ed438
共有 1 个文件被更改,包括 14 次插入 和 5 次删除
|
|
@ -28,7 +28,8 @@ class Clublog extends CI_Controller {
|
||||||
|
|
||||||
$data['qsos'] = $this->logbook_model->get_clublog_qsos();
|
$data['qsos'] = $this->logbook_model->get_clublog_qsos();
|
||||||
|
|
||||||
// Create ADIF File of contacts not uploaded to Clublog
|
if($data['qsos']->num_rows()){
|
||||||
|
// Create ADIF File of contacts not uploaded to Clublog
|
||||||
$string = $this->load->view('adif/data/clublog', $data, TRUE);
|
$string = $this->load->view('adif/data/clublog', $data, TRUE);
|
||||||
|
|
||||||
if ( ! write_file('uploads/clublog.adi', $string)) {
|
if ( ! write_file('uploads/clublog.adi', $string)) {
|
||||||
|
|
@ -63,15 +64,23 @@ class Clublog extends CI_Controller {
|
||||||
curl_setopt($request, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($request, CURLOPT_RETURNTRANSFER, true);
|
||||||
echo curl_exec($request);
|
echo curl_exec($request);
|
||||||
|
|
||||||
|
$results = $request;
|
||||||
|
|
||||||
// close the session
|
// close the session
|
||||||
curl_close($request);
|
curl_close($request);
|
||||||
|
|
||||||
|
|
||||||
// If Clublog Accepts mark the QSOs
|
// If Clublog Accepts mark the QSOs
|
||||||
$this->clublog_model->mark_qsos_sent();
|
if (strpos($results, 'accepted') !== false) {
|
||||||
|
$this->clublog_model->mark_qsos_sent();
|
||||||
|
|
||||||
echo "QSOs uploaded and Logbook QSOs marked as sent to Clublog";
|
echo "QSOs uploaded and Logbook QSOs marked as sent to Clublog";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
echo "Nothing awaiting upload to clublog";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
正在加载…
在新工单中引用