Skip to content

Commit 423ecbc

Browse files
authored
v2.1.0稳定版本
1 parent efd3726 commit 423ecbc

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

sync_client.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
// 配置服务端脚本URL
3-
$directoryStructureURL = 'https://你的域名/sync_server.php';
3+
$directoryStructureURL = 'https://你的网站/sync_server.php';
44

55
// 检查服务端状态
66
$ch = curl_init($directoryStructureURL);
@@ -144,5 +144,4 @@ function cleanLocalDirectory($syncDirectory, $remoteFiles) {
144144
cleanLocalDirectory($syncDirectory, $remoteFiles);
145145

146146
echo $log;
147-
148147
?>

sync_server.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
function getDirectoryStructure($dir) {
43
$result = [];
54

@@ -64,5 +63,4 @@ function getFileBytes($filePath) {
6463
// 如果想将 JSON 保存到文件中,可以使用下面的代码
6564
// file_put_contents('directory_structure.json', $jsonResult);
6665
}
67-
6866
?>

0 commit comments

Comments
 (0)