Merge branch 'master' into develop
# Conflicts: # app/process/CheckWeb.php
This commit is contained in:
@@ -170,6 +170,8 @@ class UploadController
|
|||||||
'original_name' => $file->getUploadName(),
|
'original_name' => $file->getUploadName(),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
$partition = !empty($partition)?$partition:'other';
|
||||||
|
$category = !empty($category)?$category:'other';
|
||||||
$recordResult = $uploadedFilesService->recordFileInfo($fileInfo, $request, $partition, $category);
|
$recordResult = $uploadedFilesService->recordFileInfo($fileInfo, $request, $partition, $category);
|
||||||
$data = [];
|
$data = [];
|
||||||
$data['file_id'] = $recordResult['id'];
|
$data['file_id'] = $recordResult['id'];
|
||||||
|
|||||||
@@ -11,7 +11,11 @@ class CheckWeb
|
|||||||
{
|
{
|
||||||
if (getenv('ENVIRONMENT') === 'master') {
|
if (getenv('ENVIRONMENT') === 'master') {
|
||||||
new Crontab('0 */10 * * * *', function(){
|
new Crontab('0 */10 * * * *', function(){
|
||||||
$this->check();
|
$result = $this->tocurl('https://magicbridgeauto.com');
|
||||||
|
if (!preg_match('/magicbridgeauto/', $result['body'])) {
|
||||||
|
flg("【magicbridgeauto】疑似被篡改");
|
||||||
|
}
|
||||||
|
return true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,6 +29,7 @@ class CheckWeb
|
|||||||
// } else {
|
// } else {
|
||||||
flg("【magicbridgeauto】疑似被篡改");
|
flg("【magicbridgeauto】疑似被篡改");
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user