convert SIG_INFO WWFF to WWFF_REF and same for MY_
这个提交包含在:
		
							父节点
							
								
									e2d7edcf81
								
							
						
					
					
						当前提交
						95379af925
					
				
					共有  1 个文件被更改,包括 21 次插入 和 14 次删除
				
			
		|  | @ -85,7 +85,6 @@ class AdifHelper { | ||||||
|             'SILENT_KEY', |             'SILENT_KEY', | ||||||
|             'SKCC', |             'SKCC', | ||||||
|             'SOTA_REF', |             'SOTA_REF', | ||||||
|             'WWFF_REF', |  | ||||||
|             'POTA_REF', |             'POTA_REF', | ||||||
|             'SRX', |             'SRX', | ||||||
|             'SRX_STRING', |             'SRX_STRING', | ||||||
|  | @ -188,7 +187,6 @@ class AdifHelper { | ||||||
| 
 | 
 | ||||||
|         $line .= $this->getAdifFieldLine("MY_SOTA_REF", $qso->station_sota); |         $line .= $this->getAdifFieldLine("MY_SOTA_REF", $qso->station_sota); | ||||||
| 
 | 
 | ||||||
|         $line .= $this->getAdifFieldLine("MY_WWFF_REF", $qso->station_wwff); |  | ||||||
| 
 | 
 | ||||||
|         $line .= $this->getAdifFieldLine("MY_POTA_REF", $qso->station_pota); |         $line .= $this->getAdifFieldLine("MY_POTA_REF", $qso->station_pota); | ||||||
| 
 | 
 | ||||||
|  | @ -204,23 +202,32 @@ class AdifHelper { | ||||||
| 
 | 
 | ||||||
|         $line .= $this->getAdifFieldLine("MY_CNTY", $county); |         $line .= $this->getAdifFieldLine("MY_CNTY", $county); | ||||||
| 
 | 
 | ||||||
| 		$stationsSig = $qso->station_sig; | 		$line .= $this->getAdifFieldLine("WWFF_REF", $qso->{'COL_WWFF_REF'}); | ||||||
| 		// If MY_SIG is WWFF or "" and there's a station_wwff set, use data from station_wwff
 | 		$line .= $this->getAdifFieldLine("MY_WWFF_REF", $qso->station_wwff); | ||||||
| 		if ((empty($stationsSig) || $stationsSig === "WWFF") && !empty($qso->station_wwff)) { | 
 | ||||||
| 			$line .= $this->getAdifFieldLine("MY_SIG", "WWFF"); | 		// If MY_SIG is WWFF it's a special case
 | ||||||
| 			$line .= $this->getAdifFieldLine("MY_SIG_INFO", $qso->station_wwff); | 		// Else set MY_SIG and MY_SIG_INFO as usual
 | ||||||
|  | 		$station_sig = $qso->station_sig ?? ""; | ||||||
|  | 		if ($station_sig === "WWFF") { | ||||||
|  | 			// If MY_WWFF_REF wasn't set yet, set it - end result is priority is given to STATION_WWFF
 | ||||||
|  | 			if (empty($qso->station_wwff)) { | ||||||
|  | 				$line .= $this->getAdifFieldLine("MY_WWFF_REF", $qso->station_sig_info); | ||||||
|  | 			} | ||||||
| 		} else { | 		} else { | ||||||
| 			$line .= $this->getAdifFieldLine("MY_SIG", $stationsSig); | 			$line .= $this->getAdifFieldLine("MY_SIG", $qso->station_sig); | ||||||
| 			$line .= $this->getAdifFieldLine("MY_SIG_INFO", $qso->station_sig_info); | 			$line .= $this->getAdifFieldLine("MY_SIG_INFO", $qso->station_sig_info); | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		$sig = $qso->{'COL_SIG'}; | 		// Same for COL_SIG If it's WWFF, it's a special case
 | ||||||
| 		// If SIG is WWFF or "" and there's a WWFF_REF set, use data from COL_WWFF_REF
 | 		// Else set SIG and SIG_INFO as usual
 | ||||||
| 		if ((empty($sig) || $sig === "WWFF") && !empty($qso->{'COL_WWFF_REF'})) { | 		$sig = $qso->{'COL_SIG'} ?? ""; | ||||||
| 			$line .= $this->getAdifFieldLine("SIG", "WWFF"); | 		if ($sig === "WWFF") { | ||||||
| 			$line .= $this->getAdifFieldLine("SIG_INFO", $qso->{'COL_WWFF_REF'}); | 			// If WWFF_REF wasn't set yet, set it - end result is priority is given to COL_WWFF_REF
 | ||||||
|  | 			if (empty($qso->{'COL_WWFF_REF'})){ | ||||||
|  | 				$line .= $this->getAdifFieldLine("WWFF_REF", $qso->{'COL_SIG_INFO'}); | ||||||
|  | 			} | ||||||
| 		} else { | 		} else { | ||||||
| 			$line .= $this->getAdifFieldLine("SIG", $sig); | 			$line .= $this->getAdifFieldLine("SIG", $qso->{'COL_SIG'}); | ||||||
| 			$line .= $this->getAdifFieldLine("SIG_INFO", $qso->{'COL_SIG_INFO'}); | 			$line .= $this->getAdifFieldLine("SIG_INFO", $qso->{'COL_SIG_INFO'}); | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用