Files
AIGC/demo/FRP_QUICK_START.md
AIGC Developer b5820d9be2 feat: 使用banana模型生成分镜图片,修复数据库列类型问题
- 修改RealAIService.submitTextToImageTask使用nano-banana/nano-banana-hd模型
- 支持根据hdMode参数选择模型(标准/高清)
- 修复数据库列类型:将result_url等字段改为TEXT类型以支持Base64图片
- 添加数据库修复SQL脚本(fix_database_columns.sql, update_database_schema.sql)
- 改进StoryboardVideoService的错误处理和空值检查
- 添加GlobalExceptionHandler全局异常处理
- 优化图片URL提取逻辑,支持url和b64_json两种格式
- 改进响应格式验证,确保data字段不为空
2025-11-05 18:18:53 +08:00

90 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# FRP 快速开始指南
## 最简单的配置方法(使用 OpenFrp
### 1. 注册并创建隧道
1. 访问https://www.openfrp.net/
2. 注册账号并登录
3. 点击"创建隧道"
4. 配置:
- 节点:选择国内节点
- 类型HTTP
- 本地端口8080
- 域名:使用系统分配的或自定义
5. 创建成功后,记录:
- 访问地址(如:`https://xxx.openfrp.net`
- 服务器地址
- Token
### 2. 下载 FRP 客户端
1. 访问https://github.com/fatedier/frp/releases
2. 下载最新版本的 Windows 版本(如:`frp_0.52.3_windows_amd64.zip`
3. 解压到 `demo` 目录
### 3. 配置 FRP 客户端
1.`demo` 目录下创建 `frpc.ini` 文件
2. 复制 `frpc.ini.example` 的内容
3. 修改配置:
```ini
[common]
server_addr = 从OpenFrp控制台获取
server_port = 7000
token = 从OpenFrp控制台获取
[payment]
type = http
local_ip = 127.0.0.1
local_port = 8080
custom_domains = 你的域名.openfrp.net
```
### 4. 启动 FRP
双击运行 `start-frpc.bat`,或手动运行:
```powershell
cd demo
.\frpc.exe -c frpc.ini
```
### 5. 更新配置文件
更新以下文件中的回调URL
**`demo/src/main/resources/application-dev.properties`:**
```properties
alipay.notify-url=https://你的域名.openfrp.net/api/payments/alipay/notify
alipay.return-url=https://你的域名.openfrp.net/api/payments/alipay/return
```
**`demo/src/main/resources/payment.properties`:**
```properties
alipay.domain=https://你的域名.openfrp.net
alipay.notify-url=https://你的域名.openfrp.net/api/payments/alipay/notify
alipay.return-url=https://你的域名.openfrp.net/api/payments/alipay/return
```
### 6. 重启服务器
重启 Spring Boot 应用,新的回调地址就会生效。
### 7. 测试
1. 访问 `https://你的域名.openfrp.net` - 应该能看到应用
2. 测试回调接口:
```powershell
Invoke-WebRequest -Uri "https://你的域名.openfrp.net/api/payments/alipay/notify" -Method HEAD
```
应该返回 200而不是 302
## 注意事项
- FRP 客户端需要一直运行,关闭后内网穿透会断开
- 免费服务可能有流量限制,建议用于开发测试
- 生产环境建议使用固定域名和服务器