作者 Your Name

update

... ... @@ -50,3 +50,8 @@ PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
API_URL=https://sitefile.globalso.com/
TRANSMIT_URL=https://hub.globalso.com/
MERCHANT_NUMBER=
SECRET_TOKEN=
... ...
/node_modules
/public/hot
/public/storage
/public/.htaccess
/public/nginx.htaccess
/storage/*.key
/public
/vendor
.env
.env.backup
.phpunit.result.cache
docker-compose.override.yml
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
/.idea
/.vscode
composer.lock
!/public/wp-admin/admin-ajax.php
app/Console/Commands/Test.php
... ...
... ... @@ -116,7 +116,8 @@ function httpPost($url, $data, $header = [],$is_json = true)
$header = array(
"Accept: application/json",
"Content-Type:application/json;charset=utf-8",
"Token:".env("WEB_SITE_TOKEN")
"token:".env("SECRET_TOKEN"),
"pid:".env("MERCHANT_NUMBER")
);
}
$ch = curl_init();
... ... @@ -197,9 +198,10 @@ public function uploadAmpVerifyFile(Request $request)
*/
public function websiteHtml(Request $request){
$domain = $request->getHost();
$token = env("WEB_SITE_TOKEN");
$token = env("SECRET_TOKEN");
$pid = env("MERCHANT_NUMBER");
$apiUrl = env("API_URL");
$requestUrl = $apiUrl."api/get_url_verify_token/?domain=".$domain."&token=".$token;
$requestUrl = $apiUrl."api/get_url_verify_token/?pid=".$pid."&token=".$token."&domain=".$domain;
@file_put_contents(storage_path('logs/notify_get_url.log'), date('Y-m-d H:i:s') . "接收到通知:". $requestUrl . PHP_EOL, FILE_APPEND);
try {
... ... @@ -239,6 +241,9 @@ public function websiteHtmlHandle($url,$domain)
$zip->extractTo($outputFolder);
$zip->close();
$this->deleteDirectory($targetFile);
$transmitUrl = env("TRANSMIT_URL");
$this->httpPost($transmitUrl."api/selfSiteNotify/",json_encode(['domain'=>$domain]));
} else {
return $this->error('解压失败!');
// 处理打开压缩文件失败的情况
... ...
*.sqlite*
... ...
compiled.php
config.php
down
events.scanned.php
maintenance.php
routes.php
routes.scanned.php
schedule-*
services.json
... ...