mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-28 07:10:15 +08:00
fixed price badge for MinimaxHailuoVideoNode
This commit is contained in:
parent
8eee5ae2af
commit
e9652dbd53
@ -350,23 +350,13 @@ class MinimaxHailuoVideoNode(IO.ComfyNode):
|
|||||||
depends_on=IO.PriceBadgeDepends(widgets=["resolution", "duration"]),
|
depends_on=IO.PriceBadgeDepends(widgets=["resolution", "duration"]),
|
||||||
expr="""
|
expr="""
|
||||||
(
|
(
|
||||||
$r := widgets.resolution;
|
$prices := {
|
||||||
$d := widgets.duration;
|
"768p": {"6": 0.28, "10": 0.56},
|
||||||
|
"1080p": {"6": 0.49}
|
||||||
$price :=
|
};
|
||||||
$contains($r,"768p")
|
$resPrices := $lookup($prices, $lowercase(widgets.resolution));
|
||||||
? (
|
$price := $lookup($resPrices, $string(widgets.duration));
|
||||||
$contains($d,"6") ? 0.28 :
|
{"type":"usd","usd": $price ? $price : 0.43}
|
||||||
$contains($d,"10") ? 0.56 :
|
|
||||||
0.43
|
|
||||||
)
|
|
||||||
: $contains($r,"1080p")
|
|
||||||
? (
|
|
||||||
$contains($d,"6") ? 0.49 : 0.43
|
|
||||||
)
|
|
||||||
: 0.43;
|
|
||||||
|
|
||||||
{"type":"usd","usd": $price}
|
|
||||||
)
|
)
|
||||||
""",
|
""",
|
||||||
),
|
),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user