作者 lyh

gx

@@ -181,11 +181,12 @@ class TranslateLogic extends BaseLogic @@ -181,11 +181,12 @@ class TranslateLogic extends BaseLogic
181 if(FALSE !== strpos($country_class, 'country-flag')) { 181 if(FALSE !== strpos($country_class, 'country-flag')) {
182 continue; 182 continue;
183 } 183 }
  184 + if(!in_array(htmlspecialchars_decode(html_entity_decode($string)),$need_tran)){
184 $need_tran[] = htmlspecialchars_decode(html_entity_decode($string)); 185 $need_tran[] = htmlspecialchars_decode(html_entity_decode($string));
185 } 186 }
  187 + }
186 $need_tran[] = $description ? $description->attr['content'] : ''; 188 $need_tran[] = $description ? $description->attr['content'] : '';
187 $need_tran[] = $keywords ? $keywords->attr['content'] : ''; 189 $need_tran[] = $keywords ? $keywords->attr['content'] : '';
188 - $need_tran = array_values(array_unique($need_tran));  
189 return $need_tran; 190 return $need_tran;
190 } 191 }
191 192