eqsl: add date force update
这个提交包含在:
		
							父节点
							
								
									cb94eca7e3
								
							
						
					
					
						当前提交
						d750a6cd4b
					
				
					共有  1 个文件被更改,包括 5 次插入 和 5 次删除
				
			
		|  | @ -53,7 +53,7 @@ class EqslImporter | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	// Download confirmed QSO from eQSL inbox and import them
 | 	// Download confirmed QSO from eQSL inbox and import them
 | ||||||
| 	public function fetch($password) { | 	public function fetch($password, $eqsl_force_from_date) { | ||||||
| 		if (empty($password) || empty($this->callsign)) { | 		if (empty($password) || empty($this->callsign)) { | ||||||
| 			return $this->result('Missing username and/or password'); | 			return $this->result('Missing username and/or password'); | ||||||
| 		} | 		} | ||||||
|  | @ -63,15 +63,15 @@ class EqslImporter | ||||||
| 		$q = $query->row(); | 		$q = $query->row(); | ||||||
| 		$eqsl_url = $q->eqsl_download_url; | 		$eqsl_url = $q->eqsl_download_url; | ||||||
| 
 | 
 | ||||||
| 		// Query the logbook to determine when the last eQSL confirmation was
 | 		// Query the logbook to determine when the last eQSL confirmation was / Or use date input from form //
 | ||||||
| 		$eqsl_last_qsl_date = $this->CI->eqslmethods_model->eqsl_last_qsl_rcvd_date($this->callsign, $this->qth_nickname); | 		$eqsl_last_qsl_date = (strtotime($eqsl_force_from_date)!==false)?date("Ymd",strtotime($eqsl_force_from_date)):$this->CI->eqslmethods_model->eqsl_last_qsl_rcvd_date($this->callsign, $this->qth_nickname); | ||||||
| 
 | 
 | ||||||
| 		// Build parameters for eQSL inbox file
 | 		// Build parameters for eQSL inbox file
 | ||||||
| 		$eqsl_params = http_build_query(array( | 		$eqsl_params = http_build_query(array( | ||||||
| 			'UserName' => $this->qth_nickname, //$this->callsign,
 | 			'UserName' => $this->callsign, | ||||||
| 			'Password' => $password, | 			'Password' => $password, | ||||||
| 			'RcvdSince' => $eqsl_last_qsl_date, | 			'RcvdSince' => $eqsl_last_qsl_date, | ||||||
| 			//'QTHNickname' => $this->qth_nickname,
 | 			'QTHNickname' => $this->qth_nickname, | ||||||
| 			'ConfirmedOnly' => 1 | 			'ConfirmedOnly' => 1 | ||||||
| 		)); | 		)); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用