(proj_scan_succ, error_code, error_msg)
| 255 | |
| 256 | @staticmethod |
| 257 | def get_result(proj_scan_succ, error_code, error_msg): |
| 258 | if proj_scan_succ: |
| 259 | status = StatusType.SUCCESS |
| 260 | text = "分析成功" |
| 261 | else: |
| 262 | status = StatusType.ERROR |
| 263 | text = "分析异常" |
| 264 | scan_result = { |
| 265 | "status": status, |
| 266 | "error_code": error_code, |
| 267 | "text": text, |
| 268 | "description": error_msg, |
| 269 | } |
| 270 | return scan_result |
| 271 | |
| 272 | def generate_qucik_scan_report(self, scan_path_info, result, task_result_paths, task_rules): |
| 273 | """ |