Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
faff1771
Commit
faff1771
authored
Mar 30, 2026
by
erio
Browse files
debug(channel): 添加 formToAPI 调试日志 + 移除 Sora 平台
parent
b06cd06e
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/views/admin/ChannelsView.vue
View file @
faff1771
...
...
@@ -518,7 +518,7 @@ const form = reactive({
let
abortController
:
AbortController
|
null
=
null
// ── Platform config ──
const
platformOrder
:
GroupPlatform
[]
=
[
'
anthropic
'
,
'
openai
'
,
'
gemini
'
,
'
antigravity
'
,
'
sora
'
]
const
platformOrder
:
GroupPlatform
[]
=
[
'
anthropic
'
,
'
openai
'
,
'
gemini
'
,
'
antigravity
'
]
function
getPlatformTextColor
(
platform
:
string
):
string
{
switch
(
platform
)
{
...
...
@@ -691,6 +691,7 @@ function formToAPI(): { group_ids: number[], model_pricing: ChannelModelPricing[
// Model pricing with platform tag
for
(
const
entry
of
section
.
model_pricing
)
{
console
.
log
(
'
[formToAPI] entry:
'
,
JSON
.
stringify
({
models
:
entry
.
models
,
billing_mode
:
entry
.
billing_mode
,
per_request_price
:
entry
.
per_request_price
}))
if
(
entry
.
models
.
length
===
0
)
continue
model_pricing
.
push
({
platform
:
section
.
platform
,
...
...
@@ -707,6 +708,7 @@ function formToAPI(): { group_ids: number[], model_pricing: ChannelModelPricing[
}
}
console
.
log
(
'
[formToAPI] result:
'
,
JSON
.
stringify
({
group_ids
,
model_pricing_count
:
model_pricing
.
length
,
model_mapping_keys
:
Object
.
keys
(
model_mapping
),
platforms_count
:
form
.
platforms
.
length
,
pricing_entries
:
form
.
platforms
.
map
(
s
=>
s
.
model_pricing
.
length
)
}))
return
{
group_ids
,
model_pricing
,
model_mapping
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment