implemented QR code tips controller, delete email message, delete all email messages

This commit is contained in:
ltiongku
2024-08-13 19:19:56 +08:00
parent c8cfe610a6
commit 63e2d299fd
15 changed files with 195 additions and 12 deletions

View File

@@ -428,6 +428,19 @@ public class URLVerificationService {
// Get Classification using ML Model
public String getClassification(URLModel urlModel){
return predictionService.predict(urlModel);
// Call ML model
String category = predictionService.predict(urlModel);
//update in category in url table
// return classification results
if (category.equals(CAT_BENIGN)) {
if (!urlModel.getDetails().getTrackingDescriptions().isEmpty()) {
return CLASSIFY_WARNING;
}
return CLASSIFY_SAFE;
}
return CLASSIFY_UNSAFE;
}
}