1.4 KiB
手机端开发
Termux 编译运行命令 bash bash/start_winboll_in_termux.sh
测试命令 http://localhost:8080/authcenter/ping
服务器端配置
服务器编译命令 bash bash/build_class.sh
网站运行环境配置命令 java -cp "runtime:libs/*" cc.winboll.Main -log:SEVERE
公网访问接口 https://console.winboll.cc/authcenter/ping
启动程序时通过参数指定日志级别,支持的级别为 ALL / FINE / INFO / WARNING / SEVERE ,示例:
仅输出INFO及以上级别日志
java -cp "runtime:libs/*" cc.winboll.Main -v -log:INFO
输出所有级别日志(默认)
java -cp "runtime:libs/*" cc.winboll.Main -v -log:ALL
仅输出错误日志
java -cp "runtime:libs/*" cc.winboll.Main -v -log:SEVERE
1Panel Java 环境启动 java -cp "/sdcard/WinBoLLStudio/Sources/AuthCenterConsoleApp/runtime:/sdcard/WinBoLLStudio/Sources/AuthCenterConsoleApp/libs/*" cc.winboll.Main -v -log:ALL
程序内使用技巧
// 1. 服务启动时发送通知 AdminUtils.getInstance().sendServiceStartNotify();
// 2. 服务关闭时发送通知 AdminUtils.getInstance().sendServiceStopNotify();
// 3. 发送临时通知(例如配置变更提醒) AdminUtils.getInstance().sendTemporaryNotify( "【AuthCenter 临时通知】配置已更新", "系统于2026-01-22 15:00 更新了邮件服务器地址,请留意后续通知是否正常。" );