()
| 1227 | } |
| 1228 | |
| 1229 | @Override |
| 1230 | protected SearchResults doInBackground() throws Exception { |
| 1231 | |
| 1232 | SearchResults results = new SearchResults(); |
| 1233 | QueryResponse queryResponse = new QueryResponse(); |
| 1234 | String errorMessage = null; // 用于存储错误消息 |
| 1235 | errorMessage = queryResponse.errmsg; // 存储错误消息以便后面使用 |
| 1236 | String fieldsTotal = ""; |
| 1237 | |
| 1238 | long startTime = System.nanoTime(); |
| 1239 | try { |
| 1240 | |
| 1241 | String query = grammar; |
| 1242 | if (query.equals("fofaEX: FOFA Extension")) { |
| 1243 | query = ""; // 将字符串设置为空 |
| 1244 | } |
| 1245 | |
| 1246 | |
| 1247 | if (protocolMark) { |
| 1248 | |
| 1249 | fieldsTotal += ",protocol"; |
| 1250 | |
| 1251 | } |
| 1252 | |
| 1253 | if (titleMark) { |
| 1254 | |
| 1255 | fieldsTotal += ",title"; |
| 1256 | } |
| 1257 | |
| 1258 | if (domainMark) { |
| 1259 | |
| 1260 | fieldsTotal += ",domain"; |
| 1261 | } |
| 1262 | |
| 1263 | if (linkMark) { |
| 1264 | |
| 1265 | fieldsTotal += ",link"; |
| 1266 | } |
| 1267 | |
| 1268 | if (icpMark) { |
| 1269 | |
| 1270 | fieldsTotal += ",icp"; |
| 1271 | } |
| 1272 | |
| 1273 | if (cityMark) { |
| 1274 | |
| 1275 | fieldsTotal += ",city"; |
| 1276 | } |
| 1277 | |
| 1278 | if (countryMark) { |
| 1279 | |
| 1280 | fieldsTotal += ",country"; |
| 1281 | } |
| 1282 | if (country_nameMark) { |
| 1283 | |
| 1284 | fieldsTotal += ",country_name"; |
| 1285 | } |
| 1286 | if (regionMark) { |
nothing calls this directly
no test coverage detected