|
@@ -19,12 +19,6 @@ export class FishController {
|
|
|
if (!fishData.ip) {
|
|
if (!fishData.ip) {
|
|
|
fishData.ip = getClientIP(request)
|
|
fishData.ip = getClientIP(request)
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- // 调试信息:显示各种 IP 相关信息
|
|
|
|
|
- console.log('request.ip: ', request.ip)
|
|
|
|
|
- console.log('x-forwarded-for: ', request.headers['x-forwarded-for'])
|
|
|
|
|
- console.log('x-real-ip: ', request.headers['x-real-ip'])
|
|
|
|
|
- console.log('最终使用的 IP: ', fishData.ip)
|
|
|
|
|
|
|
|
|
|
// 检查是否已存在相同 ID 的记录
|
|
// 检查是否已存在相同 ID 的记录
|
|
|
let existingFish: any = null
|
|
let existingFish: any = null
|