Skip to content

Commit adb92a9

Browse files
committed
白盒重新扫描
1 parent 7dce4a2 commit adb92a9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

code/app/controller/Code.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@ public function rescan(Request $request)
4949
if ($this->auth_group_id != 5 && !in_array($this->userId, config('app.ADMINISTRATOR'))) {
5050
$map[] = ['user_id', '=', $this->userId];
5151
}
52+
53+
$array = [
54+
'scan_time' => '2000-01-01 00:00:00',
55+
'sonar_scan_time' => '2000-01-01 00:00:00',
56+
'kunlun_scan_time' => '2000-01-01 00:00:00',
57+
'semgrep_scan_time' => '2000-01-01 00:00:00',
58+
'composer_scan_time' => '2000-01-01 00:00:00',
59+
'java_scan_time' => '2000-01-01 00:00:00',
60+
'python_scan_time' => '2000-01-01 00:00:00',
61+
'webshell_scan_time' => '2000-01-01 00:00:00',
62+
];
63+
Db::table('app')->where(['id' => $id])->save($array);
5264
Db::table('fortify')->where(['code_id' => $id])->delete();
5365
Db::table('semgrep')->where(['code_id' => $id])->delete();
5466
Db::table('code_webshell')->where(['code_id' => $id])->delete();

0 commit comments

Comments
 (0)