|
...
|
...
|
@@ -169,15 +169,16 @@ public function uploadVerifyFile(Request $request) |
|
|
|
{
|
|
|
|
$domain = $request->getHost();
|
|
|
|
$files = $request->allFiles();
|
|
|
|
$path = $request->input('path', '');
|
|
|
|
$file_name = '';
|
|
|
|
foreach ($files as $file) {
|
|
|
|
$destinationPath = public_path($domain);
|
|
|
|
$destinationPath = public_path($domain . $path);
|
|
|
|
$file->move($destinationPath, $file->getClientOriginalName());
|
|
|
|
$filePath = $destinationPath . '/' . $file->getClientOriginalName();
|
|
|
|
@file_put_contents(storage_path('logs/upload_file.log'), date('Y-m-d H:i:s') . " " . $filePath . PHP_EOL, FILE_APPEND);
|
|
|
|
$file_name = $file->getClientOriginalName();
|
|
|
|
}
|
|
|
|
if ($file_name) {
|
|
|
|
if ($file_name && empty($path)) {
|
|
|
|
$transmitUrl = env("TRANSMIT_URL");
|
|
|
|
$this->httpPost($transmitUrl . "api/selfSiteVerify/", json_encode(['file_name' => $file_name, 'type' => 1]));
|
|
|
|
}
|
|
...
|
...
|
@@ -260,7 +261,7 @@ public function websiteHtml(Request $request) |
|
|
|
"zip_count" => $zip_count
|
|
|
|
];
|
|
|
|
$info = json_encode($info);
|
|
|
|
Redis::lpush(env('REDIS_NAME','handle_html'), $info);
|
|
|
|
Redis::lpush(env('REDIS_NAME', 'handle_html'), $info);
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|