[DXCC id] Fixed identification for VP2x calls (and probably others)
这个提交包含在:
		
							父节点
							
								
									ad889e7ee8
								
							
						
					
					
						当前提交
						c8a85a72c0
					
				
					共有  1 个文件被更改,包括 9 次插入 和 22 次删除
				
			
		|  | @ -2838,13 +2838,7 @@ class Logbook_model extends CI_Model { | ||||||
|       $call = "KG4"; |       $call = "KG4"; | ||||||
|     } elseif (preg_match('/(^KG4)[A-Z09]{1}/', $call)) { |     } elseif (preg_match('/(^KG4)[A-Z09]{1}/', $call)) { | ||||||
|       $call = "K"; |       $call = "K"; | ||||||
| 		} elseif (preg_match_all('/^((\d|[A-Z])+\/)?((\d|[A-Z]){3,})(\/(\d|[A-Z])+)?(\/(\d|[A-Z])+)?$/', $call, $matches)) { | 		} elseif (preg_match('/\w\/\w/', $call)) { | ||||||
| 			if ($matches[5][0] == '/MM' || $matches[5][0] == '/AM') { |  | ||||||
| 				$row['adif'] = 0; |  | ||||||
| 				$row['entity'] = 'None'; |  | ||||||
| 				$row['cqz'] = 0; |  | ||||||
| 				return array($row['adif'], $row['entity'], $row['cqz']); |  | ||||||
| 			} else { |  | ||||||
|         $result = $this->wpx($call, 1);                       # use the wpx prefix instead
 |         $result = $this->wpx($call, 1);                       # use the wpx prefix instead
 | ||||||
|         if ($result == '') { |         if ($result == '') { | ||||||
|           $row['adif'] = 0; |           $row['adif'] = 0; | ||||||
|  | @ -2854,7 +2848,6 @@ class Logbook_model extends CI_Model { | ||||||
|         } else { |         } else { | ||||||
|           $call = $result . "AA"; |           $call = $result . "AA"; | ||||||
|         } |         } | ||||||
|       } |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
| 		$len = strlen($call); | 		$len = strlen($call); | ||||||
|  | @ -2904,15 +2897,7 @@ class Logbook_model extends CI_Model { | ||||||
|           $call = "KG4"; |           $call = "KG4"; | ||||||
|         } elseif (preg_match('/(^KG4)[A-Z09]{1}/', $call)) { |         } elseif (preg_match('/(^KG4)[A-Z09]{1}/', $call)) { | ||||||
|           $call = "K"; |           $call = "K"; | ||||||
| 				} elseif (preg_match_all('/^((\d|[A-Z])+\/)?((\d|[A-Z]){3,})(\/(\d|[A-Z])+)?(\/(\d|[A-Z])+)?$/', $call, $matches)) { |         } elseif (preg_match('/\w\/\w/', $call)) { | ||||||
| 					if ($matches[5][0] == '/MM' || $matches[5][0] == '/AM') { |  | ||||||
| 						$row['adif'] = 0; |  | ||||||
| 						$row['entity'] = 'None'; |  | ||||||
| 						$row['cqz'] = 0; |  | ||||||
| 						$row['long'] = '0'; |  | ||||||
| 						$row['lat'] = '0'; |  | ||||||
| 						return $row; |  | ||||||
| 					} else { |  | ||||||
|             $result = $this->wpx($call, 1);                       # use the wpx prefix instead
 |             $result = $this->wpx($call, 1);                       # use the wpx prefix instead
 | ||||||
|             if ($result == '') { |             if ($result == '') { | ||||||
|               $row['adif'] = 0; |               $row['adif'] = 0; | ||||||
|  | @ -2925,7 +2910,6 @@ class Logbook_model extends CI_Model { | ||||||
|               $call = $result . "AA"; |               $call = $result . "AA"; | ||||||
|             } |             } | ||||||
|     		} |     		} | ||||||
|     		} |  | ||||||
| 
 | 
 | ||||||
| 				$len = strlen($call); | 				$len = strlen($call); | ||||||
| 
 | 
 | ||||||
|  | @ -2960,7 +2944,8 @@ class Logbook_model extends CI_Model { | ||||||
|       $c = ''; |       $c = ''; | ||||||
|    |    | ||||||
|       $lidadditions = '/^QRP|^LGT/'; |       $lidadditions = '/^QRP|^LGT/'; | ||||||
|       $csadditions = '/^P$|^R$|^M{1,2}$|^AM$|^A$/'; |       $csadditions = '/^P$|^R$|^A$/'; | ||||||
|  |       $noneadditions = '/^M{1,2}$|^AM$/'; | ||||||
|    |    | ||||||
|       # First check if the call is in the proper format, A/B/C where A and C
 |       # First check if the call is in the proper format, A/B/C where A and C
 | ||||||
|       # are optional (prefix of guest country and P, MM, AM etc) and B is the
 |       # are optional (prefix of guest country and P, MM, AM etc) and B is the
 | ||||||
|  | @ -3051,6 +3036,8 @@ class Logbook_model extends CI_Model { | ||||||
|               } elseif (preg_match($csadditions, $c)) { |               } elseif (preg_match($csadditions, $c)) { | ||||||
|                   preg_match('/(.+\d)[A-Z]*/', $b, $matches);     # Known attachment -> like Case 1.1
 |                   preg_match('/(.+\d)[A-Z]*/', $b, $matches);     # Known attachment -> like Case 1.1
 | ||||||
|                   $prefix = $matches[1]; |                   $prefix = $matches[1]; | ||||||
|  |               } elseif (preg_match($noneadditions, $c)) { | ||||||
|  |                  return ''; | ||||||
|               } elseif (preg_match('/^\d\d+$/', $c)) {            # more than 2 numbers -> ignore
 |               } elseif (preg_match('/^\d\d+$/', $c)) {            # more than 2 numbers -> ignore
 | ||||||
|                   preg_match('/(.+\d)[A-Z]* /', $b, $matches);    # see above
 |                   preg_match('/(.+\d)[A-Z]* /', $b, $matches);    # see above
 | ||||||
|                   $prefix = $matches[1][0]; |                   $prefix = $matches[1][0]; | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用