-
Notifications
You must be signed in to change notification settings - Fork 11
Description
添加第一个频道没有问题,第二个就不能添加。提示“错误:
唯一性约束失败:channels.custom_id
[返回首页]”
stderr: 2026/02/02 15:41:05 main.go:63: LiveTV Version 1.0.0
stderr: 2026/02/02 15:41:05 main.go:64: Server listen 0.0.0.0:9000
stderr: 2026/02/02 15:41:05 main.go:65: Server datadir ./data
stderr: 2026/02/02 15:41:05 main.go:71: LiveTV starting...
stdout: [GIN] 2026/02/02 - 15:41:14 | 200 | 578.543µs | 192.168.0.159 | GET "/"
stdout: [GIN] 2026/02/02 - 15:41:14 | 200 | 169.261µs | 192.168.0.159 | GET "/login"
stdout: [GIN] 2026/02/02 - 15:41:14 | 200 | 277.236µs | 192.168.0.159 | GET "/assert/css/bootstrap.min.css"
stdout: [GIN] 2026/02/02 - 15:41:14 | 200 | 127.734µs | 192.168.0.159 | GET "/assert/css/signin.css"
stdout: [GIN] 2026/02/02 - 15:41:14 | 200 | 189.71µs | 192.168.0.159 | GET "/assert/js/bootstrap.min.js"
stdout: [GIN] 2026/02/02 - 15:41:14 | 200 | 173.656µs | 192.168.0.159 | GET "/assert/js/jquery.min.js"
stdout: [GIN] 2026/02/02 - 15:41:21 | 302 | 143.038µs | 192.168.0.159 | POST "/api/login"
stdout: [GIN] 2026/02/02 - 15:41:21 | 200 | 285.712µs | 192.168.0.159 | GET "/"
stdout: [GIN] 2026/02/02 - 15:41:21 | 200 | 97.636µs | 192.168.0.159 | GET "/assert/css/index.css"
stdout: [GIN] 2026/02/02 - 15:41:21 | 200 | 130.644µs | 192.168.0.159 | GET "/assert/js/bootbox.all.min.js"
stdout: [GIN] 2026/02/02 - 15:41:21 | 200 | 176.017µs | 192.168.0.159 | GET "/assert/fonts/glyphicons-halflings-regular.woff2"
stdout: [GIN] 2026/02/02 - 15:41:21 | 404 | 4.587µs | 192.168.0.159 | GET "/favicon.ico"
stdout: [GIN] 2026/02/02 - 15:41:42 | 200 | 543.596µs | 192.168.0.159 | GET "/"
stdout: [GIN] 2026/02/02 - 15:41:50 | 302 | 1.155313ms | 192.168.0.159 | POST "/api/newchannel"
stdout: [GIN] 2026/02/02 - 15:41:50 | 200 | 357.109µs | 192.168.0.159 | GET "/"
stdout: [GIN] 2026/02/02 - 15:42:15 | 302 | 3.622905ms | 192.168.0.159 | POST "/api/updconfig"
stdout: [GIN] 2026/02/02 - 15:42:15 | 200 | 368.314µs | 192.168.0.159 | GET "/"
stderr: 2026/02/02 15:42:52 api.go:158: UNIQUE constraint failed: channels.custom_id
stdout:
stdout: [35m(/go/src/github.com/qist/livetv/service/channel.go:14)[0m
stdout: [33m[2026-02-02 15:42:52][0m [31;1m UNIQUE constraint failed: channels.custom_id [0m
stdout: [GIN] 2026/02/02 - 15:42:52 | 500 | 875.53µs | 192.168.0.159 | POST "/api/newchannel"
stdout: [GIN] 2026/02/02 - 15:42:57 | 200 | 666.722µs | 192.168.0.159 | GET "/"
stderr: 2026/02/02 15:43:06 api.go:158: UNIQUE constraint failed: channels.custom_id
stdout: [GIN] 2026/02/02 - 15:43:06 | 500 | 359.462µs | 192.168.0.159 | POST "/api/newchannel"
stdout:
stdout: [35m(/go/src/github.com/qist/livetv/service/channel.go:14)[0m
stdout: [33m[2026-02-02 15:43:06][0m [31;1m UNIQUE constraint failed: channels.custom_id [0m