4 Commits

Author SHA1 Message Date
Eamon-meng
9a8a1826c9 发布v1.4.0版本 2026-04-13 11:33:19 +08:00
Eamon-meng
c2a0310ee5 修复未认证提取ip的接口调用户会话 2026-04-13 10:23:19 +08:00
Eamon-meng
8ee8feb2bf 修改构建脚本路径 2026-04-02 17:56:48 +08:00
Eamon-meng
1e090f5c88 更新配置文件修复构建问题 2026-04-02 17:52:15 +08:00
9 changed files with 24 additions and 13 deletions

4
.env.example Normal file
View File

@@ -0,0 +1,4 @@
# 开发环境配置
NEXT_PUBLIC_API_BASE_URL=http://192.168.3.42:8080
CLIENT_ID=web
CLIENT_SECRET=web

2
.gitignore vendored
View File

@@ -31,7 +31,7 @@ yarn-error.log*
.pnpm-debug.log*
# env files (can opt-in for committing if needed)
.env*
.env
# vercel
.vercel

View File

@@ -16,6 +16,7 @@ COPY . .
ENV NEXT_TELEMETRY_DISABLED=1
RUN mv .env.example .env
RUN bun run build
# 生产阶段

View File

@@ -1,6 +1,6 @@
{
"name": "lanhu-web",
"version": "1.3.0",
"version": "1.4.0",
"private": true,
"scripts": {
"dev": "next dev -H 0.0.0.0 --turbopack",

View File

@@ -9,8 +9,8 @@ if ($confrim -ne "y") {
exit 0
}
docker build -t repo.lanhuip.com:8554/lanhu/web/lanhu/web:latest .
docker build -t repo.lanhuip.com:8554/lanhu/web/lanhu/web:$($args[0]) .
docker build -t repo.lanhuip.com:8554/lanhu/web:latest .
docker build -t repo.lanhuip.com:8554/lanhu/web:$($args[0]) .
docker push repo.lanhuip.com:8554/lanhu/web/lanhu/web:latest
docker push repo.lanhuip.com:8554/lanhu/web/lanhu/web:$($args[0])
docker push repo.lanhuip.com:8554/lanhu/web:latest
docker push repo.lanhuip.com:8554/lanhu/web:$($args[0])

View File

@@ -32,5 +32,5 @@ export async function createChannels(params: {
city?: string
isp?: number
}) {
return callPublic<CreateChannelsResp[]>('/api/channel/create', params)
return callByUser<CreateChannelsResp[]>('/api/channel/create', params)
}

View File

@@ -164,16 +164,21 @@ export default function RecordPage(props: RecordPageProps) {
cell: ({row}) => <div>{row.original.prov}</div>,
accessorKey: 'prov',
},
{
header: '城市',
cell: ({row}) => <div>{row.original.city}</div>,
accessorKey: 'city',
},
{
header: '提取数量',
cell: ({row}) => <div>{row.original.count}</div>,
accessorKey: 'count',
},
{
header: '资源数量',
cell: ({row}) => <div>{row.original.resource_id}</div>,
accessorKey: 'resource_id',
},
// {
// header: '资源数量',
// cell: ({row}) => <div>{row.original.resource_id}</div>,
// accessorKey: 'resource_id',
// },
{
header: '提取时间',
cell: ({row}) => {

View File

@@ -46,7 +46,7 @@ export function DesktopPayment(props: PaymentModalProps) {
<p className="text-sm text-gray-600">
使
{decoration.text}
{/* 扫码支付 */}
</p>
<div className="w-full text-center space-y-2">

View File

@@ -8,4 +8,5 @@ export type Batch = {
time: string
user_id: number
prov: string
city: string
}