1
0
This commit is contained in:
liushuang 2025-09-29 11:18:06 +08:00
parent 7b1ebb60bd
commit ae20f2f5e7
47 changed files with 0 additions and 511 deletions

View File

@ -1,50 +0,0 @@
# 一、球馆的管理员,扫码注册/登录小程序
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/6.jpg" alt="" />
# 二、点开个人中心查看UID在昵称下面
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/7.png" alt="" />
# 三、收集如下信息
| 信息 | 示例|
|:--------|:-----|
| 球馆的管理员UID| 10010|
| 球馆的名称 | 冠驰台球俱乐部|
| 所属地区 | 合肥市包河区 |
| 球馆简介 | 星域台球俱乐部于2024年9月26日成立我们着力服务好每一位热爱台球这项运动的爱好者。|
| 营业执照照片 | 1张|
| 经营场地图片 | 最多3张 |
| 联系人微信二维码| 微信二维码的用途是:用户在小程序里预约助教,识别二维码添加微信好友|
| 联系人手机号 | -|
| 联系人姓名 | 张三|
# 四、运营人员在后台添加球馆
### 1、电脑端浏览器打开运营后台https://admin.boomball.cn
### 2、球馆管理-球馆列表,点击列表上方【新增】按钮
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/8.png" alt="" />
### 3、填写表单后拉到弹出页面的底部点击左侧【提交】按钮
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/9.png" alt="" />
### 4、保存成功后复制球馆的登录账号和密码发送给球馆的管理员
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/10.png" alt="" />
#### 示例球馆测试一条球馆超管UID10022登录密码YKKZ8005bgcw@
# 五、球馆管理员登录球馆后台
### 1、电脑端浏览器打开https://club.boomball.cn
### 2、输入球馆管理员的UID
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/11.png" alt="" />
### 3、一个账号可以管理多个球馆所以需要选一下球馆
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/12.png" alt="" />
### 4、输入密码点击【登录】按钮
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/13.png" alt="" />
### 5、确认球馆信息是否正确
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/14.png" alt="" />

View File

@ -1,22 +0,0 @@
# 一、在球馆后台或小程序发布比赛
### 球馆后台-赛事管理-新增
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/15.png" alt="" />
### 填写比赛基本信息
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/16.png" alt="" />
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/17.png" alt="" />
### 在小程序端创建
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/23.png" alt="" />
# 二、在比赛详情页进行分享
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/39.png" alt="" />
# 三、玩家可点开分享链接进行报名
### 玩家第一次报名时,需要上传正脸照片
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/42.png" alt="" />
# 四、查看比赛和报名的玩家
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/18.png" alt="" />
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/19.png" alt="" />
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/20.png" alt="" />

View File

@ -1,24 +0,0 @@
# 一、添加助教
### 在球馆后台添加
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/24.png" alt="" />
### 在小程序添加
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/25.png" alt="" />
# 二、球馆后台和小程序查看添加的助教
### 小程序的入口在:个人中心-助教管理
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/27.png" alt="" />
# 三、在运营后台通过、驳回助教
### 根据状态筛选或搜索助教
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/28.png" alt="" />
### 通过或驳回
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/29.png" alt="" />
# 四、球馆后台编辑后重新提交审核
### 个人简介、头像、照片发生变更,无论该助教处于什么状态,都会自动转为【审核中】
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/30.png" alt="" />
# 五、球馆后台添加/移除管理员
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/31.png" alt="" />

View File

@ -1,22 +0,0 @@
# 一、球馆后台-赛事列表-创建轮次
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/32.png" alt="" />
### 一场比赛要打很多轮,所以要为每一个轮次取一个名称,方便记忆和管理。
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/33.png" alt="" />
# 二、报名人数超过了100人一次创建不了怎么办
### 多创建几个轮次比如海选赛第1轮、海选赛第2轮
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/34.png" alt="" />
# 三、怎么查出所有玩家中,没有参与到任何轮次对局的
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/35.png" alt="" />
# 四、玩家怎么查看已报名比赛和对局
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/43.png" alt="" />
# 五、球馆管理员怎么管理对阵
### 球馆后台-赛事列表-点击某一场比赛的【对阵】按钮
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/36.png" alt="" />
# 六、球馆管理员怎么修改对局双方的比分
<img src="http://git.jkwlstv.cn/doc/md/raw/branch/main/image/37.png" alt="" />

View File

@ -1,81 +0,0 @@
### 一键运行脚本
```
sudo bash -d 域名 -p 内网穿透的端口号
```
### 脚本内容
```
#!/bin/bash
# 解析命令行参数
while getopts d:p: flag
do
case "${flag}" in
d) DOMAIN=${OPTARG};;
p) SERVER_PORT=${OPTARG};;
?)
echo "错误:未知参数。"
echo "用法:$0 -d example.com -p 8080"
exit 1;;
esac
done
# 检查 DOMAIN 是否已提供
if [ -z "$DOMAIN" ]; then
echo "错误:必须使用 -d 参数指定域名。"
echo "用法:$0 -d example.com -p 8080"
exit 1
fi
# 检查 SERVER_PORT 是否已提供
if [ -z "$SERVER_PORT" ]; then
echo "错误:必须使用 -p 参数指定端口号。"
echo "用法sudo bash -d example.com -p 8080"
exit 1
fi
FILE="/etc/nginx/sites-available/$DOMAIN"
LINK="/etc/nginx/sites-enabled/$DOMAIN"
# 创建站点配置文件
sudo tee "$FILE" > /dev/null <<EOF
server {
listen 80;
server_name $DOMAIN;
location / {
proxy_pass http://127.0.0.1:$SERVER_PORT;
proxy_set_header Host \$host;
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto \$scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade \$http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 300s;
proxy_send_timeout 300s;
proxy_buffering on;
proxy_buffer_size 128k;
proxy_buffers 8 256k;
proxy_busy_buffers_size 256k;
proxy_max_temp_file_size 100m;
}
# 日志配置
access_log /var/log/nginx/${DOMAIN}.access.log;
error_log /var/log/nginx/${DOMAIN}.error.log;
}
EOF
# 创建软链接并重启 Nginx
sudo ln -sf "$FILE" "$LINK"
sudo systemctl reload nginx
echo "Nginx 配置已为域名 $DOMAIN 创建,代理到端口 $SERVER_PORT并已重载服务。"
```

View File

@ -1,62 +0,0 @@
升级更新现有的包(可选)
```
apt update && sudo apt upgrade -y
```
安装语言包和字体
```
apt install language-pack-zh-hans fonts-noto-cjk
```
生成本地化文件
```
locale-gen zh_CN.UTF-8
```
设为默认语言
```
echo "LANG=zh_CN.UTF-8" | sudo tee /etc/locale.conf
```
设置所有变量(可选)
```
vim /etc/environment
```
编辑以下内容
```
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh"
LC_ALL="zh_CN.UTF-8"
```
刷新
```
source /etc/environment
```
验证
```
locale
```
重启系统对所有应用生效
```
reboot
```
配置SSH登录提示为中文(可选)
```
vim /etc/ssh/sshd_config
```
编辑
```
AcceptEnv LANG LC_*
```
重启SSH服务
```
sudo systemctl restart ssh
```

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 341 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 250 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 208 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 354 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 285 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 261 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 398 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 371 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 222 KiB

View File

@ -1,5 +0,0 @@
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\AppXSvc]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ClipSVC]
"Start"=dword:00000004

View File

@ -1,230 +0,0 @@
## 官方文档
https://ehang-io.github.io/nps
## 在有公网IP的计算机上安装NPS
```
mkdir -p /home/npchome && cd /home/npchome
```
#### Linux ARM64
```
wget https://github.com/yisier/nps/releases/download/v0.26.25/linux_arm64_server.tar.gz && tar -zxvf linux_arm64_server.tar.gz
```
#### Linux AMD64
```
wget https://github.com/yisier/nps/releases/download/v0.26.25/linux_amd64_server.tar.gz && tar -zxvf linux_amd64_server.tar.gz
```
#### Darwin ARM64
```
wget https://github.com/yisier/nps/releases/download/v0.26.25/darwin_arm64_server.tar.gz && tar -zxvf darwin_arm64_server.tar.gz
```
#### Darwin AMD64
```
wget https://github.com/yisier/nps/releases/download/v0.26.25/darwin_amd64_server.tar.gz && tar -zxvf darwin_amd64_server.tar.gz
```
#### 修改配置文件
配置文件参数解析https://ehang-io.github.io/nps/#/server_config 下面的可以直接改改用:
```
vim /home/npchome/conf/nps.conf
```
```
# 自定义,英文+数字不超过16位
public_vkey=
# 自定义,英文+数字不超过16位
auth_key=
# 自定义,英文+数字固定16位
auth_crypt_key=
# 网页端管理员用户名
web_username=admin
# 网页端管理员账号的密码,英文+数字+特殊符号(.@!
web_password=
appname = nps
#Boot mode(dev|pro)
runmode = pro
#HTTP(S) proxy port, no startup if empty
http_proxy_ip=0.0.0.0
http_proxy_port=26666
https_proxy_port=36666
https_just_proxy=true
#default https certificate setting
https_default_cert_file=conf/server.pem
https_default_key_file=conf/server.key
##bridge
bridge_type=tcp
bridge_port=28888
bridge_ip=0.0.0.0
#Traffic data persistence interval(minute)
#Ignorance means no persistence
flow_store_interval=1
# log level LevelEmergency->0 LevelAlert->1 LevelCritical->2 LevelError->3 LevelWarning->4 LevelNotice->5 LevelInformational->6 LevelDebug->7
log_level=6
log_path=nps.log
#p2p
#p2p_ip=127.0.0.1
#p2p_port=6000
#web
web_host=a.o.com
web_port = 38888
web_ip=0.0.0.0
web_base_url=
web_open_ssl=false
web_cert_file=conf/server.pem
web_key_file=conf/server.key
# if web under proxy use sub path. like http://host/nps need this.
#web_base_url=/nps
#allow_ports=9001-9009,10001,11000-12000
#Web management multi-user login
allow_user_login=false
allow_user_register=false
allow_user_change_username=false
#extension
#流量限制
allow_flow_limit=true
#带宽限制
allow_rate_limit=true
#客户端最大隧道数限制
allow_tunnel_num_limit=true
allow_local_proxy=false
#客户端最大连接数
allow_connection_num_limit=true
#每个隧道监听不同的服务端端口
allow_multi_ip=true
system_info_display=true
#获取用户真实ip
http_add_origin_header=true
#cache
http_cache=false
http_cache_length=10
#get origin ip
#http_add_origin_header=false
#pprof debug options
#pprof_ip=0.0.0.0
#pprof_port=9999
#client disconnect timeout
disconnect_timeout=60
#管理面板开启验证码校验
open_captcha=false
# 是否开启tls
tls_enable=true
tls_bridge_port=48888
```
#### 安装命令
```
cd /home/npchome && sudo ./nps install
```
#### 启动命令
```
sudo nps start
```
#### 停止命令
```
sudo nps stop
```
#### 端口号使用情况
- 26666http代理端口
- 36666https代理端口
- 28888:TCP隧道端口
- 38888WebUI的端口
- 48888TCP隧道开启TLS占用的端口
网页端访问地址http://公网IP:38888 使用示例https://ehang-io.github.io/nps/#/example 看不懂可以在网上搜NPS内网穿透使用教程。
## 在内网服务器或本地计算机安装npcLinunx/Mac
```
mkdir -p /home/npchome && cd /home/npchome
```
#### Linux ARM64
```
wget https://github.com/yisier/nps/releases/download/v0.26.25/linux_arm64_client.tar.gz && tar -zxvf linux_arm64_client.tar.gz
```
#### Linux AMD64
```
wget https://github.com/yisier/nps/releases/download/v0.26.25/linux_amd64_client.tar.gz && tar -zxvf linux_amd64_client.tar.gz
```
#### Darwin ARM64
```
wget https://github.com/yisier/nps/releases/download/v0.26.25/darwin_arm64_client.tar.gz && tar -zxvf darwin_arm64_client.tar.gz
```
#### Darwin AMD64
```
wget https://github.com/yisier/nps/releases/download/v0.26.25/darwin_amd64_client.tar.gz && tar -zxvf darwin_amd64_client.tar.gz
```
#### 安装
```
sudo ./npc install -server=安装NPS的机器IP:28888 -vkey=服务端添加客户端生成的key
```
#### 启动/停止
```
sudo npc start
```
```
sudo npc stop
```
## 在Windows上安装npc
Windows仅支持AMD64点击这个地址自动开始下载https://github.com/yisier/nps/releases/download/v0.26.25/windows_amd64_client.tar.gz 下载成功后把压缩包拷贝到一个单独的文件夹例如在D盘创建一个【NPC】的文件夹如果你使用的解压软件无法解压推荐使用`7zip`进行解压。打开命令行窗口在D:/NPC的目录下执行下面这个命令
#### 安装
```
npc.exe install -server=安装NPS的机器IP:28888 -vkey=服务端添加客户端生成的key
```
#### 启动/停止
```
sudo npc start
```
```
sudo npc stop
```

View File

@ -1,15 +0,0 @@
```
FROM docker.1ms.run/eclipse-temurin:21-jdk
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN sed -i s@http://archive.ubuntu.com/@http://mirrors.tuna.tsinghua.edu.cn/@g /etc/apt/sources.list && \
sed -i s@http://security.ubuntu.com/@http://mirrors.tuna.tsinghua.edu.cn/@g /etc/apt/sources.list
RUN apt-get update && \
apt-get install -y git maven && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
```