commit 706849ff7f1f7eb7af76afe8ea5ee8620ee7ec5b Author: wsh5485 Date: Sun Jun 15 12:19:36 2025 +0800 feat: 添加F8来客应用发布系统 - 实现APK文件上传功能,包括版本验证和自动更新最新版本 - 添加访问令牌验证机制保障安全性 - 创建README文档说明项目结构和使用方法 - 添加图片资源和日志记录功能 diff --git a/README.md b/README.md new file mode 100644 index 0000000..12659e2 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# F8app_publish + +这是一个用于发布F8来客应用的PHP项目。 + +## 目录结构 + +- `app.html`: 主页面 +- `f8app/`: 包含APK文件和上传脚本 + - `access_token.txt`: 访问令牌 + - `upload.php`: 上传脚本 + - `uploads/`: 存放APK文件 + - 包含多个版本的F8来客APK +- `f8img/`: 存放图片资源 + +## 使用说明 + +1. 将APK文件放入`f8app/uploads/`目录 +2. 通过`app.html`访问主页面 +3. 使用`upload.php`进行文件上传 + +## 注意事项 + +- 确保服务器有写入`uploads/`目录的权限 +- 定期清理旧版本APK文件 \ No newline at end of file diff --git a/app.html b/app.html new file mode 100644 index 0000000..209e212 --- /dev/null +++ b/app.html @@ -0,0 +1,193 @@ + + + + + + + + + F8来客 + + + + +
+ +
+ +
+ +

F8来客

+

F8来客是管理门店进销存、门店收银、门店会员权益、O2O 全域订单履约管 理以及门店导购业绩任务等业务,实现企业统一的商品管理、库存管理和全域会员管理,实现导购与会员的服务体系,构建企业智慧化门店管理平台

+
+ + +
+
+ + App + + + + +
+
+ +
+ +

扫码获取

+ 下载安装 + + +

OS平台尚未发布,敬请期待~

+ +
+ + + + +
+
+ + + +
+
+ +
+
+
+ +
+ + +
+

F8来客

+

F8来客是管理门店进销存、门店收银、门店会员权益、O2O 全域订单履约管 理以及门店导购业绩任务等业务,实现企业统一的商品管理、库存管理和全域会员管理,实现导购与会员的服务体系,构建企业智慧化门店管理平台

+
+ + +
+
+ + App + + + + +
+
+ +
+ +

扫码获取

+
+ + + + + Android 平台下载 + + + + + + + iOS 平台下载 + + + + + + + + +

HarmonyOS Next 平台尚未发布,敬请期待~

+ + +
+
+ + + + +
+
+ +
+ + + + +
+

应用截图

+
+
+
    + +
  • + +
  • + +
  • + +
  • + +
  • + +
  • + +
  • + +
  • + +
  • + +
  • + +
+
+ +
+

复制成功

+
+
+ + + + + diff --git a/f8app/access_token.txt b/f8app/access_token.txt new file mode 100644 index 0000000..6497dd9 --- /dev/null +++ b/f8app/access_token.txt @@ -0,0 +1 @@ +872ef3f99b0d6fd75a6476482ceb190d \ No newline at end of file diff --git a/f8app/upload.php b/f8app/upload.php new file mode 100644 index 0000000..4b35da2 --- /dev/null +++ b/f8app/upload.php @@ -0,0 +1,216 @@ + 0) { + if (file_exists($latestPath)) { + unlink($latestPath); + } + if (!copy($targetPath, $latestPath)) { + $message = '更新最新版本失败'; + } + $message = '上传成功! 已更新为最新版本: ' . $versionName; + } else { + $message = '上传成功! 当前版本: ' . $versionName . ' (未更新,已有更高版本: ' . $currentLatestVersion . ')'; + } + } else { + $message = '上传失败'; + } + } + } +} + +function getLatestVersionName($dir) { + $files = glob($dir . '*.apk'); + $maxVersion = '0'; + foreach ($files as $file) { + if (basename($file) === 'F8来客_latest.apk') continue; + $version = shell_exec("aapt dump badging \"$file\" | grep versionName | awk -F\"'\" '{print $2}'"); + $version = trim($version); + if (version_compare($version, $maxVersion) > 0) { + $maxVersion = $version; + } + } + return $maxVersion; +} +?> + + + + + + F8来客 - APK上传 + + + +
+ +

APK上传

+ + +
+ +
+ + +
+ + +
+ +
+ + + +

最近上传记录

+
+ '; + foreach ($recentLines as $line) { + echo '
  • ' . htmlspecialchars($line) . '
  • '; + } + echo ''; + } else { + echo '

    暂无上传记录

    '; + } + ?> +
    +
    + + + + diff --git a/f8app/uploads/F8来客_latest.apk b/f8app/uploads/F8来客_latest.apk new file mode 100644 index 0000000..d79d64f Binary files /dev/null and b/f8app/uploads/F8来客_latest.apk differ diff --git a/f8app/uploads/F8来客_v2.20.0.apk b/f8app/uploads/F8来客_v2.20.0.apk new file mode 100644 index 0000000..cd9245b Binary files /dev/null and b/f8app/uploads/F8来客_v2.20.0.apk differ diff --git a/f8app/uploads/F8来客_v2.20.2.apk b/f8app/uploads/F8来客_v2.20.2.apk new file mode 100644 index 0000000..ee4daa6 Binary files /dev/null and b/f8app/uploads/F8来客_v2.20.2.apk differ diff --git a/f8app/uploads/F8来客_v2.21.0.apk b/f8app/uploads/F8来客_v2.21.0.apk new file mode 100644 index 0000000..d9ec2d0 Binary files /dev/null and b/f8app/uploads/F8来客_v2.21.0.apk differ diff --git a/f8app/uploads/F8来客_v2.22.3.apk b/f8app/uploads/F8来客_v2.22.3.apk new file mode 100644 index 0000000..d79d64f Binary files /dev/null and b/f8app/uploads/F8来客_v2.22.3.apk differ diff --git a/f8app/uploads/F8来客_v2.99.3.apk b/f8app/uploads/F8来客_v2.99.3.apk new file mode 100644 index 0000000..49d41e3 Binary files /dev/null and b/f8app/uploads/F8来客_v2.99.3.apk differ diff --git a/f8app/uploads/upload.log b/f8app/uploads/upload.log new file mode 100644 index 0000000..a04ef81 --- /dev/null +++ b/f8app/uploads/upload.log @@ -0,0 +1,7 @@ +2025-06-01 16:03:12 - IP: 220.171.171.18, 上传文件: F8来客_latest.apk, 版本号: v2.20.2 +2025-06-01 16:16:54 - IP: 220.171.171.18, 上传文件: F8来客_v2.20.0.apk, 版本号: v2.20.0 +2025-06-01 16:34:47 - IP: 220.171.171.18, 上传文件: F8来客_v2.20.2.apk, 版本号: v2.20.2 +2025-06-01 16:41:11 - IP: 220.171.171.18, 上传文件: F8来客_v2.99.3.apk, 版本号: v2.19.3 +2025-06-03 12:35:14 - IP: 220.171.171.18, 上传文件: F8来客_v2.99.3.apk, 版本号: v2.19.3 +2025-06-05 16:21:07 - IP: 220.171.171.18, 上传文件: F8来客_v2.21.0.apk, 版本号: v2.21.0 +2025-06-13 13:15:36 - IP: 220.171.168.171, 上传文件: F8来客_v2.22.3.apk, 版本号: v2.22.3 diff --git a/f8img/1.png b/f8img/1.png new file mode 100644 index 0000000..bd85218 Binary files /dev/null and b/f8img/1.png differ diff --git a/f8img/2.png b/f8img/2.png new file mode 100644 index 0000000..f010d3c Binary files /dev/null and b/f8img/2.png differ diff --git a/f8img/3.png b/f8img/3.png new file mode 100644 index 0000000..fb96079 Binary files /dev/null and b/f8img/3.png differ diff --git a/f8img/4.png b/f8img/4.png new file mode 100644 index 0000000..91278b5 Binary files /dev/null and b/f8img/4.png differ diff --git a/f8img/5.png b/f8img/5.png new file mode 100644 index 0000000..e89796b Binary files /dev/null and b/f8img/5.png differ diff --git a/f8img/logo.jpg b/f8img/logo.jpg new file mode 100644 index 0000000..47521d7 Binary files /dev/null and b/f8img/logo.jpg differ