Import county from LotW matches
这个提交包含在:
		
							父节点
							
								
									0ed3327734
								
							
						
					
					
						当前提交
						9ed225e375
					
				
					共有  2 个文件被更改,包括 12 次插入 和 2 次删除
				
			
		|  | @ -545,7 +545,13 @@ class Lotw extends CI_Controller { | |||
| 						$iota = ""; | ||||
| 					} | ||||
| 
 | ||||
| 					$lotw_status = $this->logbook_model->lotw_update($time_on, $record['call'], $record['band'], $qsl_date, $record['qsl_rcvd'], $state, $qsl_gridsquare, $iota); | ||||
| 					if (isset($record['cnty'])) { | ||||
| 						$cnty = $record['cnty']; | ||||
| 					} else { | ||||
| 						$cnty = ""; | ||||
| 					} | ||||
| 
 | ||||
| 					$lotw_status = $this->logbook_model->lotw_update($time_on, $record['call'], $record['band'], $qsl_date, $record['qsl_rcvd'], $state, $qsl_gridsquare, $iota, $cnty); | ||||
| 				} | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -2074,7 +2074,7 @@ class Logbook_model extends CI_Model { | |||
|     } | ||||
|   } | ||||
| 
 | ||||
|   function lotw_update($datetime, $callsign, $band, $qsl_date, $qsl_status, $state, $qsl_gridsquare, $iota) { | ||||
|   function lotw_update($datetime, $callsign, $band, $qsl_date, $qsl_status, $state, $qsl_gridsquare, $iota, $cnty) { | ||||
| 
 | ||||
| 	$data = array( | ||||
|       'COL_LOTW_QSLRDATE' => $qsl_date, | ||||
|  | @ -2088,6 +2088,10 @@ class Logbook_model extends CI_Model { | |||
|       $data['COL_IOTA'] = $iota; | ||||
| 	} | ||||
| 
 | ||||
| 	if($cnty != "") { | ||||
|       $data['COL_CNTY'] = $cnty; | ||||
| 	} | ||||
| 
 | ||||
|     $this->db->where('date_format(COL_TIME_ON, \'%Y-%m-%d %H:%i\') = "'.$datetime.'"'); | ||||
|     $this->db->where('COL_CALL', $callsign); | ||||
|     $this->db->where('COL_BAND', $band); | ||||
|  |  | |||
		正在加载…
	
		在新工单中引用