Compare commits

...

3 Commits

Author SHA1 Message Date
fish 5b2f51d140 释义搜索改回 Google,搜索词用释义加"是什么意思"
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-19 22:40:03 +08:00
fish d6e75eaede 释义搜索改为跳转百度百科词条
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-19 22:35:44 +08:00
fish 945e71dfa7 释义搜索改用英文单词关键词,减少广告干扰
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-19 22:30:22 +08:00
@@ -188,7 +188,8 @@ final class WordDetailViewController: UIViewController {
private func searchMeaning() {
Haptics.selection()
guard let query = word.meaning.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed),
let text = "\(word.meaning) 是什么意思"
guard let query = text.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed),
let url = URL(string: "https://www.google.com/search?q=\(query)") else { return }
present(SFSafariViewController(url: url), animated: true)
}